On Thu, Sep 8, 2011 at 5:35 AM, Simon Willnauer <[email protected]> wrote: > I don't think this needs to be a core feature at all but I think we need > to provide the necessary hooks in Lucene core to make this reliable > and consistent.
I've thought about it a little - it would be really helpful if a sequence id were returned from indexwriter operations. public void addDocument() -> public long addDocument() public void deleteDocuments() -> public long deleteDocuments() public void commit() -> public long commit() And of course the id returned by commit would mean that everything less than that id would be in the commit. -Yonik http://www.lucene-eurocon.com - The Lucene/Solr User Conference --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
