Lucene.Net 1.9.1 Class Library

IndexReader.Delete Method (Int32)

Deletes the document numbered

docNum
. Once a document is deleted it will not appear in TermDocs or TermPostitions enumerations. Attempts to read its field with the {@link #document} method will result in an error. The presence of this document may still be reflected in the {@link #docFreq} statistic, though this will be corrected eventually as the index is further modified.

public void Delete(
   int docNum
);

See Also

IndexReader Class | Lucene.Net.Index Namespace | IndexReader.Delete Overload List