DokuWiki Sphinx Search plugin replaces DokuWiki's built-in search functionality with the Sphinx Search Engine powered search which gives high-performance and more relevant search results.
See the screenshot here:
Download and install the plugin using the Plugin Manager or using the URL given above. Refer to Plugins on how to install plugins manually.
Dowload the plugin package from Launchpad.
1. Sphinx Search (http://www.sphinxsearch.com/downloads.html) with the xmlpipe2 feature compiled in (may not be the case if you use a binary package from your distribution).
2. PHP5 with SQLite extension (it is enabled by default as of PHP 5)
1. Unpack plugin files into lib/plugins directory of your DokuWiki installation.
2. Run Sphinx Search indexer to index your DokuWiki data for the first time. Note: you have to run it from lib/plugins/sphinxsearch directory. e.g.:
$cd {Your_DokuWiki_Path}/lib/plugins/sphinxsearch
$indexer -c sphinx.conf dk_main
3. After indexer completes it's job, run searchd, e.g.:
$searchd -c sphinx.conf
4. To have your search results up-to-date, setup cronjob to periodically re-index your DokuWiki data, e.g.:
1 10 * * * root {Your_DokuWiki_Path}/lib/plugins/sphinxsearch/indexer.php
5. You can fine-tune the search behavior by editing the configuration files in conf/ dir
PHP allocate memory problem. This is solved by increasing PHP memory limit - you can use one of the following ways:
a) using php.ini
memory_limit = 1024M
b) inside php script
ini_set('memory_limit', '1024M');
c) using .htaccess file
php_value memory_limit "1024M"
This plugin replaces DokuWiki's built-in search functionality, so you just have to use the search box in the header. Do not forget to setup re-indexing as said in the #4 above.
If you need any help with installation or maintenance - feel free to Contact us!
Contact us if you need any new features or any help with deployment.
$pagesList = getPagesList(); in the xmlall.php script) unless I set ACL “* @ALL read”.functions.php file, (line 208). Add array('skipacl' ⇒ true) as 3rd param to search($data,$conf['datadir'],'search_allpages',array('skipacl' => true),'');
— Fernando de Jesus Leal Flores (f.lealflores [at] gmail [dot] com) 2010/05/24 11:16
ERROR: index 'dk_main': source 'dk_main': XML parse error: not well-formed (invalid token) (line=15649, pos=146, docid=4178398627).
Can someone place some printscreens of the search results? Or can I try this plugin somewhere?
Hi, I'm stuck with these steps:
Thank you in advance.