Returns the number of documents currently in this index, not counting deletions.

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

Syntax

C#
[ObsoleteAttribute("Please use MaxDoc() (same as this method) or NumDocs() (also takes deletions into account), instead. ")]
public virtual int DocCount()
Visual Basic
<ObsoleteAttribute("Please use MaxDoc() (same as this method) or NumDocs() (also takes deletions into account), instead. ")> _
Public Overridable Function DocCount As Integer
Visual C++
[ObsoleteAttribute(L"Please use MaxDoc() (same as this method) or NumDocs() (also takes deletions into account), instead. ")]
public:
virtual int DocCount()

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.IndexWriter.DocCount"]

See Also