laurentj/gitiwiki — pull request #16 by brice-t (2012-12-09 17:37:50+00:00)
Title: Sphinx search

This is a try to get Sphinx Search usable inside gitiwiki ...
https://github.com/brice-t/docs-jelix-org/commits/sphinxSearch is ready and usable in real life. This PR comes from a copy/paste of code I made for docs-jelix-org. Gitiwiki default repo does not seem to include a book. So I just pushed the code here : no tests.

Note that on search request, Sphinx gives back a list of matching document ids (integer). I thus used a jCache profile to store those ids and associate them with relevant infos. This cache must be shared between cli and www. So cache_dir must be set (when using file plugin). I launched cli part as www-data so I did not played with cache_file_umask but it may be needed under different usage.

I tried to make a "sphinxsearch" generic module and a "gtwsphinx" module specific to gitiwiki.

sphinxsearch module includes a README.md.

There should be much more to say, but this is Sunday evening, and I'm even lazier than usual ... ;)