Apache Lucene.Net 2.4.0 Class Library API

DocIdSetIterator.SkipTo Method 

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.

public abstract bool SkipTo(
   int target
);

Return Value

true if there is a docId greater than or equal to target

See Also

DocIdSetIterator Class | Lucene.Net.Search Namespace