Ruby on Rails - UltraSphinx
Hi guys, I'm using Ultrasphinx for the search thing.
My question is : I have the "rake ultrasphinx:daemon:start" running in the background. Now, should I have a cron job that does "rake ultrasphinx:index" regularly or will the daemon take care of indexing whenever a new object is created.
Please, let me know. Its kind of emergency.
Thanks
You will have to run a cron job to regularly update your index. However, you can run the rake task ultrasphinx:index:delta
to only update the delta index which contains recently changed records.
From time to time, you might also want to merge your delta index into your main index using the task ultrasphinx:index:merge
Hope this helps.