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.
Compatible with DokuWiki
Lemming
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.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
See the screenshot here:
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
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. Use Extension Manager, or alternatively 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.
using config file 'sphinx.conf'... indexing index 'dk_main'... collected 0 docs, 0.0 MB total 0 docs, 0 bytes total 0.000 sec, 0 bytes/sec, 0.00 docs/sec total 1 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 5 writes, 0.000 sec, 0.5 kb/call avg, 0.0 msec/call avg
Where's the most likely misconfiguration? – MK, 2013/02/28 15:44
Indexing started working after I did the following?
Add to /conf/local.php:
define('DOKU_URL', 'http://yourserverurl.com/');
(Although I don't see why it is related.) – MK 2013/02/28 17:11