SearchPackage
Content searching
Overview
This package makes all liberty content on your site searchable. Currently this includes articles, wiki pages, blog headers, blog posts and comments. Search is a service and automatically indexes content when the content is saved. The exception is articles which are only indexed after they are approved.Developers: check SearchPackageDevNotes
Search Settings
Administration -> Search -> Search SettingsSearch Statistics
Record searches made and their frequency. Checking this makes "search statistics" appear on the search admin menu, and gives you access to the statistics page.Minimum number of letters in search word
Index words that are this number of letters or longer only. I set mine to 4, then words like "the" aren't indexed.Maximum number of words
This applies to partial word searches. It is the maximum number of words containing a "partial word" that can be used in any one search. So, if you type in "three" - search will pick up three and twentythree. That is two - the limit is 100 by default.Age in hours of Search cache
Again - applies to partial word searches. It defines the maximum age of cached search results for any given partial word. The results cache will be used to provide a search result if it is available, and will be cleared after either the age, or when the results cache reaches it's limit (LRU List Length)LRU Purging Rate
Applies to partial word searches. LRU = Least Recently Used. Purges the oldest cache entries if there are more than the LRU List length entries every "rate" pages. This will keep space available in the cache for new seach resultsLRU List Length
Applies to partial word searches. Limit the results cache to this number of entries. I'd say the 100 default here is pretty low. I set mine to 10000Clear Search Words
Deletes all words from the partial word search cacheDelete Index
Removes the words in the search word index for the content type selected.Delete and Rebuild Index
Deletes and rebuilds the index for the content type selected. This can take a really long time if you have a lot of content. There will be a command line tool available soon for those that need it. The page timeout will be set to 5 minutes during this operation - however, I have been told this may not be even close to the time needed if your site has thousands of pages.After installing the new search module ...
After installing the new search module, you will have to do a reindex at least once on your site to get everything in there. (unless you have done this using CVS versions already). This hasn't been tested yet on a large data set - so beware, and backup.Command Line Reindex
There is a ))cmd_line_reindex.php(( file under the search directory. It can be run from the command line in case you have a large site that needs a complete reindex. This way, web page time-outs don't interfere with the indexing.It has been tested in Windows and Linux. If you get to a command prompt in the search directory, type:
php ))cmd_line_reindex.php((.
There are several options for cmd_line_reindex - all reasonable well documented in the source code.
Remaining Issues
Remaining issues that I'd like to see tackled:- Allow Stop Words
- Allow "common" word list (to prevent indexing of common words)
- Allow search to search more than liberty content - like phpbb