Close the
CopyC#
IndexWriter
without committing any changes that have occurred since the last commit (or since it was opened, if commit hasn't been called). This removes any temporary files that had been created, after which the state of the index will be the same as it was when commit() was last called or when this writer was first opened. This can only be called when this IndexWriter was opened with
CopyC#
autoCommit=false
. This also clears a previous call to {@link #prepareCommit}.
the writer was opened with
CopyC#
autoCommit=true
.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void Rollback()
Visual Basic
Public Overridable Sub Rollback
Visual C++
public:
virtual void Rollback()

See Also