If searching multiple indexes with a single searcher is there anyway to
identify which index a resulting doc is stored in?
i1 = Ferret::I.new
i2 = Ferret::I.new
i1 << {:id=>1,:text=>“random stuff”}
i1.commit
reader =
Ferret::Index::IndexReader.new([i1.options[:dir],i2.options[:dir]])
searcher = Ferret::Index::IndexSearcher.new(reader)
query = Ferret::Search::MatchAllQuery.new
searcher.search_each(query) do |doc_id,score|
puts reader[doc_id][:text] # Anyway to find what index this doc is
stored in?
end