Lucene.Net 1.9.1 Class Library

IndexModifier.Delete 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.

Overload List

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 Delete(Term);

Deletes the document numbered

docNum
.

public virtual void Delete(int);

See Also

IndexModifier Class | Lucene.Net.Index Namespace |