Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 79960 invoked from network); 1 May 2006 22:42:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 May 2006 22:42:37 -0000 Received: (qmail 54312 invoked by uid 500); 1 May 2006 22:42:34 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 54283 invoked by uid 500); 1 May 2006 22:42:34 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 54271 invoked by uid 99); 1 May 2006 22:42:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2006 15:42:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.86.89.65] (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2006 15:42:33 -0700 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=QPP/90tpiePomv7iHWGfP9BAjZIuhIP5PJwnMiEzZoGcoKOkXb96QGKUy2WM4Hfb; h=Received:Reply-To:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:In-Reply-To:X-MimeOLE:Importance:X-ELNK-Trace:X-Originating-IP; Received: from [66.245.135.50] (helo=ENGELSSERVER) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1Fah5n-0001bH-Vf for java-dev@lucene.apache.org; Mon, 01 May 2006 18:42:12 -0400 Reply-To: From: "Robert Engels" To: Subject: RE: refresh segments for deleted documents? Date: Mon, 1 May 2006 17:42:15 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <44568D54.8000701@apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Importance: Normal X-ELNK-Trace: 33cbdd8ed9881ca8776432462e451d7bd15d05d9470ff710e5644a89d23c41ee702d2413d0ca24b6350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.245.135.50 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks. I understand now. In my usage pattern deletions are never out of sync - that is why it works. -----Original Message----- From: Doug Cutting [mailto:cutting@apache.org] Sent: Monday, May 01, 2006 5:36 PM To: java-dev@lucene.apache.org Subject: Re: refresh segments for deleted documents? Robert Engels wrote: > Doug, can you comment on exactly why the 'deletions' need to be re-read? > Doesn't seem necessary to me. A common idiom is to use one IndexReader for searches, and a separate for deletions. For example, one might do something like: 1. Open IndexReader A. 2. Start serving queries against A. 3. Open IndexReader B. 4. Process queued deletions/updates against B. 5. Close B. 6. Open IndexWriter C. 7. Process queued additions/updates against C. 8. Close C. 9. Sleep until 1 minute has elapsed. 10. Go to step 1. This would publish a new version of the index every minute, attempting to batch insertions, updates and deletes, as is optimal. In this case, if you re-open A, its deletions could be out-of sync, but if you re-open B its deletions would not be out of sync. So perhaps in your usage pattern deletions are never out of sync at re-open, but there are also reasonable usage patterns where deletions can become out of sync on re-open. Doug --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org