Lucene.Net 1.9.1 Class Library

IndexModifier.DeleteDocuments Method 

Deletes all documents containing

term
. This is useful if one uses a document field to hold a unique ID string for the document. Then to delete such a document, one merely constructs a term with the appropriate field and the unique ID string as its text and passes it to this method. Returns the number of documents deleted.

public virtual int DeleteDocuments(
   Term term
);

Return Value

the number of documents deleted

See Also

IndexModifier Class | Lucene.Net.Index Namespace |