Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 89086 invoked from network); 6 Mar 2008 14:59:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 14:59:06 -0000 Received: (qmail 5583 invoked by uid 500); 6 Mar 2008 14:58:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 5558 invoked by uid 500); 6 Mar 2008 14:58:56 -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 5546 invoked by uid 99); 6 Mar 2008 14:58:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 06:58:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 72.14.204.238 as permitted sender) Received: from [72.14.204.238] (HELO qb-out-0506.google.com) (72.14.204.238) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 14:58:20 +0000 Received: by qb-out-0506.google.com with SMTP id o21so1856516qba.9 for ; Thu, 06 Mar 2008 06:57:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=44TCrflhOjXYZbZ7EgnJvdAYsfQSKPciZoUW4JGYLdA=; b=tmvLtIaudU0YWqHN0FvnKJa0z59zakGo6gfctcJB0Kk5mCuwbMQpApg1oAfrHeQnCAsg8HTCKjlWU6MgbFb4U2oobrdq0S1VScHIHrKwv5om1uI7cY6aYcYUQeEjmOykeJhUsUmppAYmncWDmJPV+JfM2b9NNfg/S+XSvE9XtFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=u/JVy5QP9nATxJyuH+hbTuvz2+EiJ+i0eSEDL/2TuMYsBLTyvaXfYbgzs/dzfmxh0HL4p9hwZaVCRl8CgOmt9BA7xATcosujND6keycDTUxevGhtHZOmqq0GiTZIZatSKJKGYyAWyQiqbPlyPbevUiCjio8ypy50rFoaNdB+YDg= Received: by 10.143.166.18 with SMTP id t18mr1237697wfo.175.1204815432171; Thu, 06 Mar 2008 06:57:12 -0800 (PST) Received: by 10.143.119.5 with HTTP; Thu, 6 Mar 2008 06:57:11 -0800 (PST) Message-ID: Date: Thu, 6 Mar 2008 09:57:11 -0500 From: "Yonik Seeley" Sender: yseeley@gmail.com To: java-user@lucene.apache.org Subject: Re: Swapping between indexes In-Reply-To: <227621ad0803060502j11adff3dg547fc7dbb4da1526@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <227621ad0803060230i485556av7b58bcd6bfbba6cc@mail.gmail.com> <3A267701-C68A-4A99-88D2-3220D6237F0C@mikemccandless.com> <227621ad0803060502j11adff3dg547fc7dbb4da1526@mail.gmail.com> X-Google-Sender-Auth: 006acc25bc67e26c X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Mar 6, 2008 at 8:02 AM, Sridhar Raman wrote: > > This way no reader will ever see the changes until you successfully > > close the writer. If the machine crashes the index is still in the > > starting state as of when the writer was first opened. > Ok, I have a slight doubt in this. Say I have gone ahead with Approach 1 > If I have opened the writer with autoCommit=false, and the system crashes, > does it mean that the changes made to IdxSrch are lost? Since Lucene buffers in memory, you will always have the risk of losing recently added documents that haven't been flushed yet. Committing on every document would be too slow to be practical. -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org