[ https://issues.apache.org/jira/browse/LUCENE-6527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578763#comment-14578763 ]
David Smiley commented on LUCENE-6527: -------------------------------------- Nice. I suppost this constant NON_SCORING_SIMILARITY could either go in IndexSearcher or be in Similarity. I think it would feel a bit better in Similarity, as it would mirror how some other classes have empty/no-op style special instances on the class it is an instance of. > 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 > Fix For: Trunk, 5.2.1 > > Attachments: LUCENE-6527.patch, 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org