sphinx中增加索引碰到的问题

今天调整了一下分享家的搜索系统,分享家的搜索是用sphinx做的,之前只索引了文章表,现在想多索引几个表,于是blahblah两下改了配置文件。

然后运行:
/usr/local/bin/indexer xxx –rotate

成功完成,但是发现搜索的时候没有效果,往下面追查,发现没有查找这个索引,继续追查,发现所有的新索引都是xxx.new.sph。

上sphinx论坛找到这样一个帖子。最后一个回复人说的很明白了:

I suppose that you added the second one but did not restart searchd since.

At the moment it is only able to pick up new index data on SIGHUP, but not new index
definitions from sphinx.conf

Restarting searchd should help.

事情就简单了,重新跑索引(不要–rorate),kill searchd,然后重启就行了。

这篇日志是每日一web-dev tip计划的一部分,如果你关注web开发或者linux,请订阅我的rss。

Tags: 相关Tags:

» «

相关文章

  • No Related Posts

发表评论

只有思想的碰撞才能产生火花!请留下你宝贵的评论吧: