lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: MultiSearcher holds on to index - optimization not one segment
Date Tue, 19 Jun 2007 13:56:48 GMT
On 6/19/07, Beard, Brian <Brian.Beard@mybir.com> wrote:
> This may seem like a naïve question - since the garbage collection is not enforcable,
is it possible to send a flag to the IndexReader to give this up once the reader is no longer
needed?

You call close() on the IndexReader (or the IndexSearcher that owns
it) when you no longer need it, and that will release resources such
as open files.

-Yonik

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