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

Returns true iff there is such an entry.

Behaves as if written:

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

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

Syntax

C#
bool SkipTo(
	int target
)
Visual Basic
Function SkipTo ( _
	target As Integer _
) As Boolean
Visual C++
bool SkipTo(
	int target
)

Parameters

target
Type: System..::..Int32

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

Return Value

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

See Also