Returns one greater than the largest possible document number. This may be used to, e.g., determine how big to allocate an array which will have an element for every document number in an index.

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

Syntax

C#
public abstract int MaxDoc()
Visual Basic
Public MustOverride Function MaxDoc As Integer
Visual C++
public:
virtual int MaxDoc() abstract

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.MaxDoc"]

See Also