思维狮身人面像自动索引 [英] thinking sphinx automatic indexing
本文介绍了思维狮身人面像自动索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何为思维狮身人面像做自动索引,否则它将继续自动索引新记录(添加/删除).或者我必须跑
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
根据我的需要,例如 2 小时后或 1 天后.如果我必须跑步,最好的方法是什么?
as per my needs like after 2hours or after 1 day. If I have to run, whats the best way to do that?
推荐答案
要定期重新索引,请使用 whenever
:
To reindex periodically, use whenever
:
http://railscasts.com/episodes/164-cron-in-ruby
这篇关于思维狮身人面像自动索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文