Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76502EAC8 for ; Thu, 14 Feb 2013 14:21:35 +0000 (UTC) Received: (qmail 25754 invoked by uid 500); 14 Feb 2013 14:21:33 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25679 invoked by uid 500); 14 Feb 2013 14:21:32 -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 25671 invoked by uid 99); 14 Feb 2013 14:21:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 14:21:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 14:21:25 +0000 Received: from VEGA (gate1.marum.de [134.102.237.1]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id C3CFF14AA054 for ; Thu, 14 Feb 2013 14:21:04 +0000 (UTC) From: "Uwe Schindler" To: References: In-Reply-To: Subject: RE: IndexReader.reopen() If Index Has Been Rebuilt Date: Thu, 14 Feb 2013 15:21:04 +0100 Message-ID: <013801ce0abe$85ce8010$916b8030$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGcjnrcXuV5PRqJT4TgB5B+Nt+UbwHM2nMBmM35PHA= Content-Language: de X-Virus-Checked: Checked by ClamAV on apache.org It works! ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Ian Lea [mailto:ian.lea@gmail.com] > Sent: Thursday, February 14, 2013 3:11 PM > To: java-user@lucene.apache.org > Subject: Re: IndexReader.reopen() If Index Has Been Rebuilt >=20 > I've never tried reopen() on a completely new index, but if it works, = it works. > Try it. I'm not aware of any documentation explicitly mentioning this. >=20 > The benefit of using reopen() rather than close/open is that if only = some > segments have changed the reopen is less costly. For a brand new = index > everything will have changed so I guess you won't save anything over a > standard close/open. >=20 >=20 > -- > Ian. >=20 >=20 > On Wed, Feb 13, 2013 at 6:28 PM, Wendy Meadows > wrote: > > We're using Lucene 3.3.0 and have an index with close to 10 million > > documents. When the application is started and the first search is > > performed, we open a read only IndexReader by calling > > IndexReader.open(directoryString, true). For all following = searches, > > we check if the indexReader is current and if not, call > IndexReader.reopen(). > > What happens if we rebuild the index from scratch while using the > > same IndexReader and only refreshing it by calling reopen? I can't > > seem to find any solid documentation explaining this, but have read = a > > few things that are giving me the impression that this may not be = the > > best approach. Can someone at least point me to some documentation > regarding this? > > > > Thank you! >=20 > --------------------------------------------------------------------- > 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