lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: TermEnum.skipTo in 3.0.0 replacement
Date Thu, 10 Dec 2009 14:23:44 GMT
An easy way to find this kind of thing is to go to the 2.9.1 documentation
and see where the deprecation alert sends you. FOr instance this is from
TermEnum.skipTo(Term target)....

 *Deprecated.* *This method is not performant and will be removed in Lucene
3.0. Use IndexReader.terms(Term)<http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/index/IndexReader.html#terms(org.apache.lucene.index.Term)>
to
create a new TermEnum positioned at a given term.*

On Thu, Dec 10, 2009 at 9:13 AM, Konstantyn Smirnov <injecteer@yahoo.com>wrote:

>
> Hi all
>
> in the Lucene 2.3.2 there was a method in TermEnum skipTo( term )
>
> In the 3.0.0 it's missing...
>
> Are there any other way to skip terms?
>
> -----
> Konstantyn Smirnov, CTO
> http://www.poiradar.ru www.poiradar.ru
> http://www.poiradar.com.ua www.poiradar.com.ua
> http://www.poiradar.com www.poiradar.com
> http://www.poiradar.de www.poiradar.de
> --
> View this message in context:
> http://old.nabble.com/TermEnum.skipTo-in-3.0.0-replacement-tp26727888p26727888.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message