<[EMAIL PROTECTED]> wrote:

Then, you can call close() to commit the changes to the index, or
abort() to rollback the index to the starting state (when the writer
was opened).

As I understand the docs, the index will get rolled back to the state as it
was when the index was opened.

How can I achieve a rollback which only goes back to the state of the last
flush (2.3) / commit (2.4/3.0)?

In 2.4, commit() sets the rollback point. So abort() will roll index back to the last time you called commit() (or to when the writer was opened if you haven't called commit).

In 2.3, your only choice is to close & re-open the writer to reset the rollback point.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to