Advances to the next document matching the query.
The iterator over the matching documents is buffered using {@link TermDocs#Read(int[],int[])}.

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

Syntax

C#
public override int NextDoc()
Visual Basic
Public Overrides Function NextDoc As Integer
Visual C++
public:
virtual int NextDoc() override

Return Value

the document matching the query or -1 if there are no more documents.

See Also