Close the 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
. This also clears a
previous call to {@link #prepareCommit}.
CopyC#
IndexWriter
CopyC#
autoCommit=false
the writer was opened with .
Namespace: Lucene.Net.IndexCopyC#
autoCommit=true
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() |