使用太阳黑子solr写查询

时间:2013-12-16 13:42:36

标签: ruby-on-rails solr sunspot sunspot-rails sunspot-solr

在我的rails应用程序中使用了sql查询,如:

user.questions.joins(:answers, :customer_infos).where("answers.customers_info_id = customer_infos.id and answers.question_id = questions.id and age >= ? and age <= ?",from_age, to_age ).select("customer_infos.*").group("customer_infos.id,multiple_queue_id")

那么如何转换为太阳黑子solr查询?

0 个答案:

没有答案