Learn about DokuWiki
Learn about DokuWiki
Compatible with DokuWiki
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. The ''was'' derivation is a fork of the original plugin with the goal of making the code compatible with latest Dokuwiki releases, adding more configurable options, some broad refactorings of the code, a loose promise that the plugin will be maintained due to being in use, as well as some (subjectively) aesthetic changes.
sphinxsearchvia the package manager.
The recent installation requires a Linux operating system that uses systemd for script management and has a crontab setup that uses
/etc/cron.* directories as time divisions. The setup is targeted mainly at the Debian family of Linux distributions (ie: should be applicable flawlessly to Ubuntu).
contrib/cron.daily/sphinx-rotate-grimoreinto the system folder at
/etc/cron.daily/- the file must be edited to adjust the variable at the top of the script
$PATH_TO_PLUGIN_DIRECTORYto point to the directory of the plugin. The file itself
sphinx-rotate-grimoreplaced in cron.daily will ensure that your search is updated on a daily basis. Other candidates include other cron directories with self explanatory names such as
/etc/cron.monthly, etc. If so desired, you can rename the file
sphinx-rotate-grimoreto any name you like. Finally, ensure that the file is made executable (for instance, by issuing the command
chmod +x /etc/cron.daily/sphinx-rotate-grimore).
/etc/systemd/systemand edit it such that the path
/var/www/grimore.org/lib/plugins/sphinxsearchpoints to the
sphinxsearchdirectory under your
lib/pluginsfolder of the DokuWiki installation.
systemctl daemon-reload systemctl enable sphinx-searchd-grimore systemctl start sphinx-searchd-grimore
to enable the Sphinx
searchd service and start it.
In case the wiki to be installed to contains very long pages then it may be necessary to bump the memory allowance of PHP. A manifestation of this problem would be noticed by searching for for a term that is contained within a very long page. The search will take a significant amount of time and would yield a blank page.
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
c) using .htaccess file
php_value memory_limit "1024M"