the SelfSolved instance deployed uses Ultrasphinx for its full-text indexer and search provider. The sphinx indexer needs to be run regularly to index new text that appears on the site.
I need crontab incantations to set the indexer to create delta indexes and merge them regularly with the main index.
Sample crontab for ultrasphinx
- yliu on March 31, 2009, 02:41 AM UTC
Had to remove the line continuation characters because Ubuntu's crontab seemed to complain about it as malformed. Also, removed the leading slash so that ultrasphinx log output will log to the application-specific log directory.
*/6 * * * * bash -c 'cd /path/to/production/current/; RAILS_ENV=production rake ultrasphinx:index:delta >> log/ultrasphinx-index.log 2>&1'
1 4 * * * bash -c 'cd /path/to/production/current/; RAILS_ENV=production rake ultrasphinx:index:main >> log/ultrasphinx-index.log 2>&1'
*/3 * * * * bash -c 'cd /path/to/production/current/; RAILS_ENV=production rake ultrasphinx:daemon:start >> log/ultrasphinx-daemon.log 2>&1'
References used:
Ultrasphinx - File: DEPLOYMENT_NOTES
( http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/DEPLOYMENT_NOTES.html ) - found by yliu on March 28, 2009, 07:37 AM UTC
Think you've got a better solution? Help yliu out by posting your solution
Ultrasphinx - File: DEPLOYMENT_NOTES
http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/DEPLOYMENT_NOTES.html - found by yliu on March 28, 2009, 07:37 AM UTC
The author of the ultrasphinx plugin has sample crontab settings