lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4421) TermsFilter should use TermsEnum.seekExact not seekCeil
Date Mon, 24 Sep 2012 19:50:08 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462044#comment-13462044
] 

Michael McCandless commented on LUCENE-4421:
--------------------------------------------

+1

It's been discussed before ... but if the number of terms gets "large-ish" we may want to
build an Automaton and use Term.intersect.

But we should do this trivial fix first ...
                
> TermsFilter should use TermsEnum.seekExact not seekCeil
> -------------------------------------------------------
>
>                 Key: LUCENE-4421
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4421
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>            Reporter: David Smiley
>            Priority: Minor
>
> TermsFilter line 82 is:
>        if (termsEnum.seekCeil(br) == TermsEnum.SeekStatus.FOUND) {
> I expected use of seekExact(...) since the Filter shouldn't need to
> potentially advance to the one after.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message