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

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

Here is a patch, it makes BS1 wrap sub scorers similarly to 
ConstantScoreQuery's BulkScorer when scores are not needed so that calling 
score on sub scorers (which it does for every document) does not need to eg. 
decode norms.

> BooleanScorer should not call score() when scores are not needed
> ----------------------------------------------------------------
>
>                 Key: LUCENE-6330
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6330
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: Trunk, 5.2
>
>         Attachments: LUCENE-6330.patch
>
>
> BooleanScorer (and maybe others?) still call score() when scores are not 
> needed. While this does not make results wrong, it is sub-optimal since it 
> still forces to decode norms while they are not needed.



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