[
https://issues.apache.org/jira/browse/LUCENE-6220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309528#comment-14309528
]
Adrien Grand commented on LUCENE-6220:
--------------------------------------
OK I think I found the root cause of this. As part of this change I tried to
add more type safety to TopDocs.merge, and in particular this method now
expects instances of TopFieldDocs when the sort is not null. But
TopGroupsResultTransformer deserializes a NamedList into a TopDocs instance and
while the individual ScoreDoc are instances of FieldDoc, it returns a new
TopDocs instead of a new TopFieldDocs. I'm not sure how to fix it as it would
require to also get the original Sort object (is it available somewhere?) but
in the meantime I can try to make TopDocs.merge more permissive again to fix
the problem.
> 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, 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]