使用 Thinking Sphinx 时,Delta 索引无法在服务器上运行
我在 Rails 项目中对 Thinking Sphinx 索引使用增量索引。在我的机器(Mac OS X)上它工作正常。我更改一条记录,它立即找到它。在服务器(Debian)上则不然。
我确实运行了 delta = true 的 sql 查询,并且我得到了预期的最近更改的记录,因此该部分正在工作。在 log/searchd.query.log 中,我看到了正确的请求:
[Fri Oct 22 10:25:29.193 2010] 0.000 sec [all/3/rel 0 (0,20)] [customer_core,customer_delta] Jonas4
有什么想法吗?
谢谢。
I'm using delta indexing for my Thinking Sphinx indexes in my Rails project. In my machine (Mac OS X) it's working fine. I change a record and it immediately finds it. On the servers (Debian) it doesn't.
I did run a sql query for delta = true and the I've got the expected recently changed records, so that part is working. In the log/searchd.query.log I see the proper request:
[Fri Oct 22 10:25:29.193 2010] 0.000 sec [all/3/rel 0 (0,20)] [customer_core,customer_delta] Jonas4
Any ideas what else could it be?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会在这里回答,即使您也已发布到支持列表...
哪个用户正在运行 TS rake 任务?哪个用户拥有您服务器上的 Rails 站点?它们应该是相同的。
另外:您使用的是 Passenger 吗?如果是这样,您需要确保在
config/sphinx.yml
文件中设置 bin_path 设置。文档贯穿了这两点。如果这些事情都没有帮助,请告诉我。
I'll answer here, even though you've posted to the support list as well...
Which user is running the TS rake tasks? And which user owns the Rails site on your server? They should be the same.
Also: are you using Passenger? If so, you'll want to make sure the bin_path setting is set in your
config/sphinx.yml
file. The documentation runs through both points.Let me know if neither of these things help matters.