Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 73448 invoked from network); 15 Oct 2008 02:36:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 02:36:17 -0000 Received: (qmail 71942 invoked by uid 500); 15 Oct 2008 02:36:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 71910 invoked by uid 500); 15 Oct 2008 02:36:12 -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 71899 invoked by uid 99); 15 Oct 2008 02:36:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 19:36:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ksshams@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 02:35:06 +0000 Received: by wa-out-1112.google.com with SMTP id n4so1383158wag.5 for ; Tue, 14 Oct 2008 19:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=eUqAEA9Ad9NPVmWyYItw2Ye+6nsyjuOFMIJobZwKGXE=; b=oPhMjYEIkHY/PfIU0/jkJngzqEbkRE15Y5PeHakk8T1P4eiEAEIt9hdR0MgBrkUe2/ J08JwtkCBxVXN0UmD9dN17MuO+YiuHDCpiRUKFPBoVSDroBHtCqlehf3SWrH3fncrui7 ZOIl94PdOj4EeLOvi/94dmNyqb1SFCSg5tMCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=rkEWlgirtuR68bZybBr+D4tHmlyMIkpNQJjiEIMivCCKDHEI8umF6CmFaReb/CNz9o ktoICPPu4p0T0P7rN78bZTFREOauXun1cu9U078VlNBzcsfYMwvo2zuHcRGbzvWy7L5R UswbH9h5H9RWZfOnQj+w1o8T1skJRH+R2uTU8= Received: by 10.115.78.1 with SMTP id f1mr279891wal.150.1224038132922; Tue, 14 Oct 2008 19:35:32 -0700 (PDT) Received: by 10.115.95.4 with HTTP; Tue, 14 Oct 2008 19:35:32 -0700 (PDT) Message-ID: <6d6cf45b0810141935j4d7fb29cj6e323b40a39d8381@mail.gmail.com> Date: Tue, 14 Oct 2008 19:35:32 -0700 From: "Khawaja Shams" To: java-user@lucene.apache.org Subject: Closing Index Reader MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15650_69248.1224038132910" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_15650_69248.1224038132910 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I am using the reopen method in the IndexReader class. In the case of the IndexReader being updated, I would like to create a new IndexSearcher and close the old IndexReader. When closing an instance of IndexReader, do I have to wait for currently executing searches (through an IndexSearcher with this instance of the IndexReader) to complete? The javadoc states that I should not invoke any method on the reader after the close is called, but I am curious about the state of the searches that are using the reader when the close is called. I would appreciate any thoughts on the question and on my approach. Thanks! ------=_Part_15650_69248.1224038132910--