在哪里放置--Rate的时间配置在Sphinx?

时间:2011-04-29 00:28:20

标签: configuration indexing sphinx configuration-files

我想在sphinx中使用--rotate每5分钟更新一次我的索引,这个数字放在哪里?

我这个命令例如

indexer --rotate --config /home/myuser/sphinx.conf --all 

我在没有好运的情况下搜索here,提前谢谢

1 个答案:

答案 0 :(得分:2)

与sphinx一起打包的索引器程序不是守护程序,也不会自行运行。相反,您需要使用调度程序来执行此操作。

对于大多数Unix版本,您只需使用cron运行索引器。

  

$ crontab -e

     

* / 5 * * * * / path / to / sphinx / bin / indexer --rotate --config /home/myuser/sphinx.conf --all