Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.MaxDoc Method 

Returns total number of docs in this index, including docs not yet flushed (still in the RAM buffer), without regard for deletions (see NumDocs()).

public int MaxDoc();

Return Value

See Also

IndexWriter Class | Lucene.Net.Index Namespace