lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ganyo <>
Subject Re: Reuse IndexSearcher?
Date Tue, 19 Aug 2003 18:18:24 GMT
Yes.  You can (and should for best performance) reuse an IndexSearcher 
as long as you don't need access to changes made to the index.  An open 
IndexSearcher won't pick up changes to the index, so if you need to see 
the changes, you will need to open a new searcher at that point.


Aviran Mordo wrote:

>Can I reuse one Instance of IndexSearcher to do multiple searches (in
>multiple threads) or do I have to instantiate a new IndexSearcher for
>each search?

View raw message