Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 54179 invoked from network); 19 Jun 2007 15:07:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 15:07:19 -0000 Received: (qmail 36437 invoked by uid 500); 19 Jun 2007 15:07:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 36412 invoked by uid 500); 19 Jun 2007 15:07:15 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 36401 invoked by uid 99); 19 Jun 2007 15:07:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 08:07:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [63.65.184.134] (HELO birexchange.BIRPLAZA.local) (63.65.184.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 08:07:09 -0700 Content-class: urn:content-classes:message Subject: RE: MultiSearcher holds on to index - optimization not one segment MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Jun 2007 11:06:48 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: MultiSearcher holds on to index - optimization not one segment Thread-Index: Aceyeb42K6tr6PPQTu20MUTUPj/7PgACatHg From: "Beard, Brian" To: X-Virus-Checked: Checked by ClamAV on apache.org 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 wrote: > This may seem like a na=EFve 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