lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <>
Subject getting the number of updated documents
Date Thu, 10 Mar 2011 16:16:41 GMT

Does IndexWriter (or somewhere else) have the method such that
it gets the number of updated documents before commit?

I have an optimized index and I'm using iw.updateDocument(Term,Document)
with the index, and before commit, I'd like to know the number of updated
documents from IndexWriter so that I can rollback if something goes wrong.

Any ideas?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message