[ 
https://issues.apache.org/jira/browse/LUCENE-8113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alan Woodward updated LUCENE-8113:
----------------------------------
    Attachment: LUCENE-8113.patch

This patch folds LazyTermContext back into TermContext itself.

The ScoreMode changes are in SpanQueries.  Previously we only needed to know 
about score mode at the top of the tree, because stats were collected by 
SpanTermQuery regardless, but now STQ can lazily collect term states so 
ScoreMode needs to be propagated down.  This does fix a bug where SpanNotQuery 
was taking into account terms from its exclusion query when scoring.

The name is confusing, I agree.  How about IndexTermStates, given it's 
basically a wrapper around an array of TermState objects for a specific index?

> Allow terms dictionary lookups to be lazy when scores are not needed
> --------------------------------------------------------------------
>
>                 Key: LUCENE-8113
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8113
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>         Attachments: LUCENE-8113.patch, LUCENE-8113.patch
>
>
> LUCENE-7311 made it possible to avoid loading TermStates in cached 
> TermQueries.  It would be useful to extend this to other queries that use the 
> terms dictionary.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to