[ 
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

Here's a patch that introduces a LazyTermContext object.  TermContext.build() 
now takes an extra 'needsStats' parameter, and returns a lazy-loading 
TermContext if it is false.  TermContext.get() needs to take a 
LeafReaderContext rather than an integer.

PhraseQuery and SpanTermQuery can now avoid disk seeks if they're being used 
directly from the query cache, and it simplifies the logic in TermWeight as 
well.

> 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-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