thinking sphinx automatic indexing

喜欢而已 提交于 2019-12-08 12:18:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!