Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 76611 invoked from network); 25 Sep 2009 18:13:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 18:13:26 -0000 Received: (qmail 68663 invoked by uid 500); 25 Sep 2009 18:13:23 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 68603 invoked by uid 500); 25 Sep 2009 18:13:23 -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 68593 invoked by uid 99); 25 Sep 2009 18:13:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 18:13:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jason.rutherglen@gmail.com designates 209.85.221.195 as permitted sender) Received: from [209.85.221.195] (HELO mail-qy0-f195.google.com) (209.85.221.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 18:13:14 +0000 Received: by qyk33 with SMTP id 33so2468622qyk.29 for ; Fri, 25 Sep 2009 11:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Tu2BVU0mf+0Dhmr6B3nBpAYVKQwmvIKAcM3uhrNFv48=; b=mJibE4J38uVpbAon4zDY7fxn4I7BC4ixkcDifQ2tg7w0dcKsOS0zBdWw8U7ZVKFItp /fgE7B9sypTIc49nPQ6IuU4Arh4Zb1DhCSWFlexTbb9inYrWt5vUluWM7FlSF05S0lvS kPqsUMXqdtzPEh8oXKp+Z4v64XuKRUY0q7Tno= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KOmoVpUi4mXdnnkFqx8ASoLNgY5XwCyl9woufTB6jcPEHU3kxMmPtnibBoEdfx0lx9 qAuqrXZklG4hQmj87WstDuV3r4ICaDByU57D0ucJYfStcRQPI/xT8JbAwD2Rx+gEqbmC dXqoUQi/VwX/5I9ai8Pzvaq0CuEyv2kMXJTpI= MIME-Version: 1.0 Received: by 10.224.117.203 with SMTP id s11mr536953qaq.332.1253902373138; Fri, 25 Sep 2009 11:12:53 -0700 (PDT) In-Reply-To: <20090925174107.301340@gmx.net> References: <20090925174107.301340@gmx.net> Date: Fri, 25 Sep 2009 11:12:52 -0700 Message-ID: <85d3c3b60909251112h728c96cejb15e781146038dde@mail.gmail.com> Subject: Re: Concurrent Indexing and Searching From: Jason Rutherglen To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org It depends on whether or not the commit completes before the reopen. Lucene 2.9 adds an IndexWriter.getReader method that will always return with the latest modifications to your index. So if you're adding many documents, you can at anytime, call IW.getReader and you will be able to search the changes made to that point. This is not different than reopen except getReader does not require a commit. On Fri, Sep 25, 2009 at 10:41 AM, Klaus Teller wrote= : > Hi, > > I've read that it is possible to update the index while another thread ha= s a reader open. > > Now let's say the reader is trying to reopen the index (using its reopen = method) and at the very same time, the write its committing its 500MB chang= es to the index. My question is, what happens in this situation? What index= does the reader end up having if it tries to open the index while the writ= er is modifying it? > > Any feedback will be much appreciated, > > Klaus. > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.= 5 - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser > > --------------------------------------------------------------------- > 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