在我的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查询?