PurpleWiki::Search::Engine - Wiki search engine.
This module provides the engine that runs a search query through one or more pluggable PurpleWiki search modules and aggregates the results for presentation.
Initially searching was provided as a function in the PurpleWiki core. When plugins were created for MovableType and bloxsom a PurpleWiki user noted that those weblogs contain content and BackLinks that should be reachable from PurpleWiki.
PurpleWiki::Search::Engine was written to address this need. It allows a search query entered in the wiki to be passed through any number of configurable search modules, collecting a list of results with a small amount of metadata, and presenting the results.
The collection of modules used is controlled by the PurpleWiki configuration file item 'SearchModule'. There is one 'SearchModule' entry for each module used. Modules are searched in the order in which they appear in the configuration file.
PurpleWiki::Search::Engine and the associated modules may be used independently of wiki.cgi if desired. A PurpleWiki::Config object is required.
Creates a new PurpleWiki::Search::Engine.
Passes the query to each of the configured search modules, requiring their code as necessary. Nothing is returned.
Returns an HTML string of the results, ordered by search module. Results within each module are ordered according to the module. Generally results are in reverse chronological order according to last modified time.
Provides access to the PurpleWiki::Config object passed in with new().
Chris Dent, <firstname.lastname@example.org>