[
https://issues.apache.org/jira/browse/LUCENE-6527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrien Grand updated LUCENE-6527:
---------------------------------
Attachment: LUCENE-6527.patch
Here is a new patch that fixes all queries. I wanted to make it impossible to
forget to apply this optimization so the way the patch works is that
IndexSearcher.getSimilarity now takes a {{boolean needsScores}} parameter too
and returns a dummy similarity when scores are not needed. This forces all
queries that need to work with a Similarity to propagate {{needsScores}} to
index searcher to make sure we do not load eg. norms when scores are not needed.
> TermWeight should not load norms when needsScores is false
> ----------------------------------------------------------
>
> Key: LUCENE-6527
> URL: https://issues.apache.org/jira/browse/LUCENE-6527
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Attachments: LUCENE-6527.patch, LUCENE-6527.patch
>
>
> TermWeight currently loads norms all the time, even when needsScores is false.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]