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

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

New patch.

IndexSearcher no more tries to guess whether scores are needed or not by always 
creating the collector before the weight. I kept the signatures of the public 
methods compatible but had to remove some protected methods that did not make 
sense anymore (because the Weight was an argument while the collector was not 
constructed yet).

I also tried to add more type safety to TopDoc.merge to avoid unchecked casts 
on the IndexSearcher side.

> Move needsScores from Weight.scorer to Query.createWeight
> ---------------------------------------------------------
>
>                 Key: LUCENE-6220
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6220
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: Trunk, 5.1
>
>         Attachments: LUCENE-6220.patch, LUCENE-6220.patch
>
>
> Whether scores are needed is currently a Scorer-level property while it 
> should actually be a Weight thing I think?



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