我试图在两个不同的地方调试以两种不同类型定义的查询:
UserQuestion.search do
keywords "different" do
fields :question, :answer_text
end
end
和
UserQuestion.search do
keywords "different" do
fields :question
fields :answer_text
end
end
所以我想问一下这两个查询之间是否存在任何差异,因为这两个查询都会导致相同的Sunspot :: Search对象:
`<Sunspot::Search:{:fq=>["type:UserQuestion"], :q=>"different", :fl=>"* score", :qf=>"question_text answer_text_text", :defType=>"dismax", :start=>0, :rows=>30}>`
提前感谢