lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] Commented: (LUCENE-1592) fix or deprecate TermsEnum.skipTo
Date Wed, 10 Jun 2009 22:27:07 GMT


Uwe Schindler commented on LUCENE-1592:

I think deprecation is to do now (before 3.0), so why move this out?
I looked into the source code in trunk, this method is used nowhere, deprecating it should
be no problem:
@deprecated Use {@link IndexReader#terms(Term)} to
create a new TermEnum. This method is not performant.

> fix or deprecate TermsEnum.skipTo
> ---------------------------------
>                 Key: LUCENE-1592
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Michael McCandless
>            Priority: Minor
> This method is a trap: it looks legitimate but it has hideously poor performance (simple
linear scan implemented in the TermsEnum base class since none of the concrete impls override
it with a more efficient implementation).
> The least we should do for 2.9 is deprecate the method with  a strong warning about its
> See here for background:
> And, here for historical context: 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message