Deletes the document numbered
CopyC#
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.
since this reader was opened
has this index open (
CopyC#
write.lock
could not be obtained)

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void DeleteDocument(
	int docNum
)
Visual Basic
Public Overridable Sub DeleteDocument ( _
	docNum As Integer _
)
Visual C++
public:
virtual void DeleteDocument(
	int docNum
)

Parameters

docNum
Type: System..::..Int32

[Missing <param name="docNum"/> documentation for "M:Lucene.Net.Index.IndexReader.DeleteDocument(System.Int32)"]

See Also