SPHINX:索引器 --rotate 语法和多个主要增量方案
我现在正在设置 Sphinx,有几个问题。我有 2 个不同的索引,主要设置了增量方案。所以基本上我的conf 文件看起来像这样:
source jobsmain
{...}
source jobsdelta : jobsmain
{...}
source usersmain
{...}
source usersdelta : usersmain
{...}
问题 - 我正在设置 crontab 以每 5 分钟更新我的增量索引。我的 cronfile 看起来像这样:
*/5 * * * /usr/bin/indexer --rotate --config /etc/sphinx/sphinx.conf jobsdelta usersdelta
这是仅更新增量索引的有效方法吗?或者我是否需要为每个增量索引制作两个单独的语句?如果我需要做出两个单独的语句,索引器是否会忙于满足第一个请求?我是否必须延迟第二个请求?
提前致谢
I am setting up Sphinx right now and have a few questions. I have 2 different indexes with main delta schemes setup. So basicaly my conf file looks something like this:
source jobsmain
{...}
source jobsdelta : jobsmain
{...}
source usersmain
{...}
source usersdelta : usersmain
{...}
Question - I am setting up crontab to update my delta indexes every 5 minutes. My cronfile looks something like this:
*/5 * * * /usr/bin/indexer --rotate --config /etc/sphinx/sphinx.conf jobsdelta usersdelta
Is that a valid way to have only the delta indexes updated? Or do I need to make two separate statements for each delta index? If I need to make two separate statements, is the indexer gonna be busy already fulfilling the first request? Am I gonna have to set a delay on the second request?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正确的语法。只需确保它们正确更新,以便您可以将它们合并在一起 稍后。
That is correct syntax. Just make sure that they're updating properly, so that you can then merge them together later.