Advances to the next document in the set and returns the doc it is currently on, or {@link #NO_MORE_DOCS} if there are no more docs in the set.
NOTE: in 3.0 this method will become abstract, following the removal of {@link #Next()}. For backward compatibility it is implemented as:
            public int nextDoc() throws IOException {
            return next() ? doc() : NO_MORE_DOCS;
            }
            
NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior.

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

Syntax

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

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.DocIdSetIterator.NextDoc"]

See Also