Apache Lucene.Net 2.4.0 Class Library API

IndexModifier.DocCount Method 

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

public virtual int DocCount();

See Also

IndexModifier Class | Lucene.Net.Index Namespace | |