Commit means the changes are committed, there's no rollback at that point.
Also in the futuer please post your questions to firstname.lastname@example.org
A question about IndexWriter.rollback() logic. Its javadoc says that it "Close the
IndexWriterwithout committing any of the changes that have occurred since it was opened." So if I do
1. Open IndexWriter
2. Add doc1
3. Commit (successfully)
4. Add doc2
Is doc1 in the index? If not, I wonder how come rollback() does not roll back to the last successful commit() state instead?