Advances to the first match beyond the current whose document number is greater than or equal to a given target.
The implementation uses {@link TermDocs#SkipTo(int)}.

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

Syntax

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

Parameters

target
Type: System..::..Int32
The target document number.

Return Value

the matching document or -1 if none exist.

See Also