Deletes the document(s) matching the provided query.
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( Query query ) |
Visual Basic |
---|
Public Overridable Sub DeleteDocuments ( _ query As Query _ ) |
Visual C++ |
---|
public: virtual void DeleteDocuments( Query^ query ) |
Parameters
- query
- Type: Lucene.Net.Search..::..Query
the query to identify the documents to be deleted