[
https://issues.apache.org/jira/browse/LUCENE-4421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley resolved LUCENE-4421.
----------------------------------
Resolution: Fixed
Fix Version/s: 4.1
Here's the one-liner change:
if (termsEnum.seekExact(br,true)) {
I figured useCache=true -- it's not documented on what cache is used but it
seems most callers pass true. Maybe someone other than me who can document it
will eventually do so.
Committed to trunk & 4x.
> 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
> Assignee: David Smiley
> Priority: Minor
> Fix For: 4.1
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]