You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Jerry Camel <rl...@msn.com> on 2009/09/21 19:55:23 UTC

Getting the most recently added document

Is it possible to get the document number of the most recently added document for an index?  If There is any type of exception while processing a document, I need to make sure it's removed from the index if it's already been added.  I still have a reference to the document object.  Is that object updated with a document number after the add?  Is the document number a proper way to identify the document?

What's the best way to track this so that, if necessary, I can remove a recent document from the index?

Thanks.

J