lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang" <john.w...@gmail.com>
Subject multireader vs multisearcher
Date Sat, 01 Dec 2007 19:48:38 GMT
Hi:

   What is the difference between using:

1) MultiReader reader=....; // create multi reader from different indexes
    IndexSearcher searcher=new IndexSearcher(reader);
    searcher.search();

vs.

2) IndexSearcher searcher1=...
    IndexSearcher searcher 2=..

    MultiSearcher searcher=new MultiSearcher(new
IndexSearcher[]{searcher1,searcher});

    searcher.search();


I understand there are some differences with idf fixing etc., but seems to
me the api is presenting two ways of solving a problem with slightly
different results.

Thanks

-John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message