Deletes the document(s) containing any of the
terms. All deletes are flushed at the same time.
NOTE: if this method hits an OutOfMemoryError
you should immediately close the writer. See above for details.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
| C# |
|---|
public virtual void DeleteDocuments( Term[] terms ) |
| Visual Basic |
|---|
Public Overridable Sub DeleteDocuments ( _ terms As Term() _ ) |
| Visual C++ |
|---|
public: virtual void DeleteDocuments( array<Term^>^ terms ) |
Parameters
- terms
- Type: array<Lucene.Net.Index..::..Term>[]()[][]
array of terms to identify the documents to be deleted