Returns the number of documents currently in this index. If the writer is currently open, this returns {@link IndexWriter#DocCount()}, else {@link IndexReader#NumDocs()}. But, note that {@link IndexWriter#DocCount()} does not take deletions into account, unlike {@link IndexReader#numDocs}.

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

Syntax

C#
public virtual int DocCount()
Visual Basic
Public Overridable Function DocCount As Integer
Visual C++
public:
virtual int DocCount()

Return Value

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

See Also