Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.DocCount Method 

NOTE: This method is now obsolete.

Please use MaxDoc() (same as this method) or NumDocs() (takes deletions into account)


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

public virtual int DocCount();

See Also

IndexWriter Class | Lucene.Net.Index Namespace