|
Archive /
SearchIndexNote: Starting with release 2.1, PmWiki has a built-in page indexing system, which makes this recipe obsolete. QuestionWhat can I do to make PmWiki searchbox results load faster? How can I make PmWiki find search terms faster? AnswerThe Attach:searchindex.php scripts is a PmWiki plugin, which significantly improves PmWiki's searchresult listing speed. This is realized by generating and using a special searchindex file. The plugin works within PmWikis normal searchbox, searchresult and pagelist functions. Description and InstallationTo use this script you have to do the following: Step 1 - The Script / Generating the Search IndexFirst copy this script into the cookbook/ directory and add the following line to config.php (or a per-page/per-group customization file): include_once('cookbook/searchindex.php');
With this script you'll be given a special, new action 'makeindex', which can be invoked by appending Step 2 - Modify "pagelist.php"Copy the script if ($searchterms) $list = SearchIndexList($inclp, $exclp, $list);
NB 160 ? Is it the good line ?
This change will integrate the searchindex into PmWikis standard searchbox, searchresults and pagelist functions. Please note that with every new PmWiki version, in which 'scrip/pagelist.php' is changed, you have to repeat step 2. Step 3 - Activate the PluginAdd the following lines to config.php (or a per-page/per-group customization file): $EnablePageList = 0;
include_once('cookbook/pagelist.php');
This command will activate the use of the searchindex script in your PmWiki. ConfigurationOptions that can be reconfigured in
Notes and Comments
Versions
See Also
Contributors
Category:Searching Superceded |