Thinking Sphinx 索引方法之间的差异
想知道它们之间有什么区别:
indexes shop.created_at, :as =>created_at
has shop(:created_at), :as => :created_at
has shop.created_at, :as => :created_at
谢谢。
Wondering what is the difference between these:
indexes shop.created_at, :as =>created_at
has shop(:created_at), :as => :created_at
has shop.created_at, :as => :created_at
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我认为第二个和第三个之间没有区别(如果我错了,请纠正我!)但是,我确信第一个和第二个
索引之间的区别用于指定字段 -根据 Thinking Sphinx 网站:
has
用于指定属性 - 同样,根据 Thinking Sphinx 网站:So I dont think there is a difference between the 2nd and 3rd (correct me if I am wrong!) however, I am sure of the difference between the 1st and 2nd
indexes
is used to specify a field - according to the Thinking Sphinx website:has
is used to specify an attribute - again, according to the Thinking Sphinx website: