Delete all documents in the index.
This method will drop all buffered documents and will
remove all segments from the index. This change will not be
visible until a {@link #Commit()} has been called. This method
can be rolled back using {@link #Rollback()}.
NOTE: this method is much faster than using deleteDocuments( new MatchAllDocsQuery() ).
NOTE: this method will forcefully abort all merges
in progress. If other threads are running {@link
#Optimize()} or any of the addIndexes methods, they
will receive {@link MergePolicy.MergeAbortedException}s.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
| C# |
|---|
public virtual void DeleteAll() |
| Visual Basic |
|---|
Public Overridable Sub DeleteAll |
| Visual C++ |
|---|
public:
virtual void DeleteAll() |
See Also