Ignore:
Timestamp:
Jun 1, 2006, 5:41:11 PM (15 years ago)
Author:
nick
Message:

Add in a guide to how the searching code works, to aid in following it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Search.pm

    r785 r799  
    118118These two parameters exist to make testing easier; you probably don't
    119119want to use them in production.
     120
     121
     122In case you're struggling to follow the code, it does the following:
     1231) Processes the parameters, and bails out if it hit a problem with them
     1242) If a search string was given, do a text search
     1253) If distance search paramaters were given, do a distance search
     1264) If no search has occured, print out the search form
     1275) If an error occured, bail out
     1286) If we got a single hit on a string search, redirect to it
     1297) If no results were found, give an empty search results page
     1308) Sort the results by either score or distance
     1319) Decide which results to show, based on paging
     13210) Display the appropriate page of the results
    120133
    121134=back
Note: See TracChangeset for help on using the changeset viewer.