lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "German Kondolf" <german.kond...@gmail.com>
Subject Re: IndexSearcher thread safety
Date Tue, 11 Mar 2008 14:45:29 GMT
As Michael said, you can share it, and you should share it, this will
improve performance and reuse the internal cache associated to the
IndexSearcher (term cache, filters cache, etc).

On Tue, Mar 11, 2008 at 7:31 AM, J B <jhnbyrn@gmail.com> wrote:
> Hi,
>
>  Are instances of IndexSearcher thread safe? In other words, should each
>  thread have it's own instance of IndexSearcher, or could I share a single
>  one between many threads, to avoid constantly opening and closing new
>  instances?
>
>  Many thanks!
>  -J.
>

---------------------------------------------------------------------
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