lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beard, Brian" <Brian.Be...@mybir.com>
Subject RE: MultiSearcher holds on to index - optimization not one segment
Date Tue, 19 Jun 2007 15:06:48 GMT
That works, thanks.

-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley
Sent: Tuesday, June 19, 2007 9:57 AM
To: java-user@lucene.apache.org
Subject: Re: MultiSearcher holds on to index - optimization not one segment

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




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