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

Alan Woodward commented on LUCENE-6527:
---------------------------------------

For SpanWeight, you don't need to pass needsScores back down to the 
constructor, as if the TermContexts map is null then you know scores are not 
required.  So you can just call {{IndexSearcher.getSimilarity(termContexts != 
null)}}.

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

Reply via email to