Deletes the document(s) matching any of the provided queries. 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.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void DeleteDocuments(
	Query[] queries
)
Visual Basic
Public Overridable Sub DeleteDocuments ( _
	queries As Query() _
)
Visual C++
public:
virtual void DeleteDocuments(
	array<Query^>^ queries
)

Parameters

queries
Type: array<Lucene.Net.Search..::..Query>[]()[][]
array of queries to identify the documents to be deleted

See Also