0
刚刚升级我有我的广告模型以下属性:ThinkingSphinx3:从TS2和越来越多sort_by错误消息
has sort_by_date, :as => :timestamp, :sortable => true
在广告表格中有一个sort_by_date场,这是一个时间字段。
然而,当我搜索,通过以下作为我:订单选项(我想,然后按相关排序显示新广告第一&)
:order => "sort_by_date DESC, @weight DESC"
我收到以下错误:
ThinkingSphinx::SphinxError (index ad_core: sort-by attribute 'sort_by_date' not found):
任何人都可以看到为什么会发生这种情况?
谢谢!
您是否从添加该属性开始运行ts:rebuild? – pat 2013-04-25 07:03:48
@pat - 是的,我跑了一堆,一切看起来应该工作,你认为我需要将我的数据库中的sort_by_date字段从日期时间转换为时间戳吗? – Jason 2013-04-25 17:22:47