问题
How can I do automatic indexing for thinking sphinx or it will keep on indexing new records (added/deleted) automatically. Or I have to run
rake ts:index
as per my needs like after 2hours or after 1 day. If I have to run, whats the best way to do that?
回答1:
To reindex periodically, use whenever
:
http://railscasts.com/episodes/164-cron-in-ruby
来源:https://stackoverflow.com/questions/6844251/thinking-sphinx-automatic-indexing