On Mon, Aug 21, 2006 at 10:59:48AM +0200, Benjamin Krause wrote:
> Hey..
> 
> i am just browsing through the lucene features and i'm wondering if this
> feature is available in ferret as well ..
> 
> # multiple-index searching with merged results

yes, it is. Checkout the MultiSearcher class. it behaves like
IndexSearcher, but searches multiple indexes:

s = MultiSearcher.new([
  IndexSearcher.new(index_dir_one),
  IndexSearcher.new(another_index_dir)
])
hits = s.search(TermQuery.new(Term.new("title","title")))


Jens

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to