Apache Lucene.Net 2.1 Class Library API

Searchable.MaxDoc Method 

Expert: Returns one greater than the largest possible document number. Called by search code to compute term weights.

int MaxDoc();

See Also

Searchable Interface | Lucene.Net.Search Namespace | IndexReader#maxDoc