You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ya...@bloglines.com on 2004/09/30 00:27:03 UTC
IndexReader / IndexSearcher
I'm opening a new IndexReader for every search request which obviously isn't
the best option.
If I open a reader can I use the same searcher for multiple
requests that are happening simultaneously? If I call close on the searcher
will it close for all the instances?
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: IndexReader / IndexSearcher
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Positive for all your questions.
I posted some code yesterday that helps with re-using IndexSearcher and
with re-opening it when the index changes.
Otis
--- yahootintin.1247688@bloglines.com wrote:
> I'm opening a new IndexReader for every search request which
> obviously isn't
> the best option.
>
> If I open a reader can I use the same searcher for multiple
> requests that are happening simultaneously? If I call close on the
> searcher
> will it close for all the instances?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org