1177: Search Indexing Issue

jge****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
Oct. 13, 2009
What's the URL of the page containing the problem?
http://www.review-board.org/docs/manual/dev/admin/installation/linux/#installing-pylucene

Describe the problem and any recommendations below.
Some important notes about searching are missing

Please provide any additional information below.
1) The default search index path is inside the reviewboard egg. make sure
that is chowned properly (or chmod'd for write access by www-data)
$ mkdir
/usr/lib/python2.5/site-packages/ReviewBoard-1.0rc3-py2.5.egg/reviewboard/search-index
$ chown -R www-data:www-data
/usr/lib/python2.5/site-packages/ReviewBoard-1.0rc3-py2.5.egg/reviewboard/search-index/

2) The search index wasn't built right away for me. To start up the index, do:

$ python
"/usr/lib/python2.5/site-packages/ReviewBoard-1.0rc3-py2.5.egg/reviewboard/cmdline/rbsite.py"
manage "/var/www/reviews.example.com" index -- --full

This should solve errors about:
JavaError: java.io.IOException: Cannot create directory: /search-index
or
JavaError: java.io.FileNotFoundException: no segments* file found in
org.apache.lucene.store.FSDirectory@/: files:

3) It looks like the other stuff needs to be cronned, do this by:
$ crontab -u www-data /var/www/reviews.example.com/conf/search-cron.conf

Hope that helps somebody
chipx86
#1 chipx86
There were bugs with the crontab generation before. It's now fixed.

I've also added new docs (which will be available in tomorrow's update) for how to
enable search. It's mostly information found in other parts of the docs, but
consolidated.
  • +Fixed
  • +chipx86