【发布时间】:2014-01-21 11:50:41
【问题描述】:
Core-Index 有效,但 Delta-Index 不起作用。但奇怪的是,日志文件中没有错误或警告,所以我不知道如何调试它。 我用 phusion-passenger 和本地的 Webbrick 测试了它。结果是一样的。 我使用 rails 3.2.13 和 thinking-sphinx 3.1.0。
我的索引定义:
ThinkingSphinx::Index.define :log, :with => :active_record, :delta => true do
indexes msg, :sortable => true
has moment, :type => :timestamp
has program, :type => :string
end
我也尝试使用延迟增量,结果相同。
有什么想法吗?
谢谢!
编辑: 是不是因为我是直接通过MySQL把数据写入数据库的? 所以只有使用 rails+active_record 才能识别新记录?
【问题讨论】:
-
当然,你重新索引了 ts?
标签: ruby-on-rails sphinx thinking-sphinx