Skips terms to the first beyond the current whose value is
greater or equal to target. Returns true iff there is such
an entry. Behaves as if written:
Namespace: Lucene.Net.Indexpublic boolean skipTo(Term target) { do { if (!next()) return false; } while (target > term()); return true; }Some implementations *could* be considerably more efficient than a linear scan. Check the implementation to be sure.
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("This method is not performant and will be removed in Lucene 3.0.Use IndexReader.Terms(Term) to create a new TermEnum positioned at a given term.")] public virtual bool SkipTo( Term target ) |
Visual Basic |
---|
<ObsoleteAttribute("This method is not performant and will be removed in Lucene 3.0.Use IndexReader.Terms(Term) to create a new TermEnum positioned at a given term.")> _ Public Overridable Function SkipTo ( _ target As Term _ ) As Boolean |
Visual C++ |
---|
[ObsoleteAttribute(L"This method is not performant and will be removed in Lucene 3.0.Use IndexReader.Terms(Term) to create a new TermEnum positioned at a given term.")] public: virtual bool SkipTo( Term^ target ) |
Parameters
- target
- Type: Lucene.Net.Index..::..Term
[Missing <param name="target"/> documentation for "M:Lucene.Net.Index.TermEnum.SkipTo(Lucene.Net.Index.Term)"]
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Index.TermEnum.SkipTo(Lucene.Net.Index.Term)"]