Skips to the first match beyond the current, whose document number is greater than or equal to target.

Returns true iff there is such a match.

Behaves as if written:

            boolean skipTo(int target) {
            do {
            if (!next())
            return false;
            } while (target > doc());
            return true;
            }
            
Most implementations are considerably more efficient than that.

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

Syntax

C#
public abstract bool SkipTo(
	int target
)
Visual Basic
Public MustOverride Function SkipTo ( _
	target As Integer _
) As Boolean
Visual C++
public:
virtual bool SkipTo(
	int target
) abstract

Parameters

target
Type: System..::..Int32

[Missing <param name="target"/> documentation for "M:Lucene.Net.Search.Spans.Spans.SkipTo(System.Int32)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.Spans.Spans.SkipTo(System.Int32)"]

See Also