lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: updating/deleting uncomitted documents
Date Mon, 06 May 2013 11:36:17 GMT
On Mon, May 6, 2013 at 7:32 AM, Daniel Penning <dpenning@gamona.de> 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


Mime
View raw message