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 A2BB41091F for ; Mon, 6 May 2013 11:37:26 +0000 (UTC) Received: (qmail 85235 invoked by uid 500); 6 May 2013 11:37:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 85195 invoked by uid 500); 6 May 2013 11:37:24 -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 85186 invoked by uid 99); 6 May 2013 11:37:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 11:37:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.212.53] (HELO mail-vb0-f53.google.com) (209.85.212.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 11:37:18 +0000 Received: by mail-vb0-f53.google.com with SMTP id i3so2805428vbh.40 for ; Mon, 06 May 2013 04:36:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=ha0YYhyunJkSSnNJ7+giLJg3uixGMFoHcCTf5AEf3NQ=; b=dnwtpABJdgosL4zRRwuoYBwOchY9ohieRGndLeAtkyD02RVJaHw8c1Ewr26yzA/BQk ScFmPDtdEIgUp/EImCcR7a/I4PLVJSZcYLwJFMhNpzgZtFGN0KVhQusRPjbUyFDmhK3Y 9KaBAuXqkbGUrIvej32O/vwP5yyQJM5f6ctV4+s/2ZZCVXH4BowaZphSr22cIhvEW1L/ XidvP8sA5lD4Y0kdxXi0UFNzX4hNHLV9/NxI4n/CqT7fLD87c8Ka8vgpBSYc3pTV6XtE gdb6yktTgFBdvQudq+edjF+OtkwQbmFFCVvk66MCkkq5H9877OBpZMU0hIY53iJQWfbq XbLg== X-Received: by 10.58.221.134 with SMTP id qe6mr6669830vec.2.1367840197720; Mon, 06 May 2013 04:36:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.224.83 with HTTP; Mon, 6 May 2013 04:36:17 -0700 (PDT) In-Reply-To: <518794E7.8010300@gamona.de> References: <518794E7.8010300@gamona.de> From: Michael McCandless Date: Mon, 6 May 2013 07:36:17 -0400 Message-ID: Subject: Re: updating/deleting uncomitted documents To: Lucene Users Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkaD4lrEXJdLr+Ev0FJdBkqb0Pw5a+9+eJEjwPa6GBXkSLd4KmoJTMZSAAXFDy5Zr3S1No0 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, May 6, 2013 at 7:32 AM, Daniel Penning wrote: > If a Document is updated multiple times in one transaction it may end up > with old versions not getting deleted, depending on when the IndexWriter got > flushed. Hmm that should not be the case. If you use updateDocument, and the Term you pass to it matches the previous document(s) you had added, then you should at any time only ever see the one [latest version] of the document visible in a near-real-time reader. Do you have a test case showing the issue...? Mike McCandless --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org