3 class SharedIndex < LocalIndex
5 # build a ferret query matching only the record with the given id and class
6 def query_for_record(id, class_name)
7 returning bq = Ferret::Search::BooleanQuery.new do
8 bq.add_query(Ferret::Search::TermQuery.new(:id, id.to_s), :must)
9 bq.add_query(Ferret::Search::TermQuery.new(:class_name, class_name), :must)