lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: cache persistent Hits
Date Wed, 27 Sep 2006 00:26:18 GMT
: >         IndexSearcher[] searchers;
: >         searchers=new IndexSearcher[3];
: >         String path="/home/sn/public_html/";
: >         searchers[0]=new IndexSearcher(path+"index1");
: >         searchers[1]=new IndexSearcher(path+"index2");
: >         searchers[2]=new IndexSearcher(path+"index3");
: >         MultiSearcher saercher=new MultiSearcher(searchers);

: Above you've opened the searcher for each search, exactly as I feared. This
: is a major hit. Don't do this, but keep the searchers open between calls.

in addition opening a multisearcher across several local searches is a big
wast (or so i'm told) ... you should see better performance from a single
searcher arround a MultiReader (note: multireader vs multisearcher)



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message