Deletes the document numbered . 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.
CopyC#
docNum
since this reader was opened
has this index open ( could not
be obtained)
Namespace: Lucene.Net.IndexCopyC#
write.lock
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)"]