You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/06/04 23:53:38 UTC

[jira] [Updated] (LUCENE-6526) Make AssertingWeight check that scores are not computed when needsScores is false

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

Adrien Grand updated LUCENE-6526:
---------------------------------
    Attachment: LUCENE-6526.patch

Here is a patch.

> Make AssertingWeight check that scores are not computed when needsScores is false
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-6526
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6526
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>         Attachments: LUCENE-6526.patch
>
>
> Today nothing prevents you from calling score() if you don't need scores. But we could make AssertingWeight check it in order to make sure that we do not waste resources computing something we don't need.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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