[
https://issues.apache.org/jira/browse/LUCENE-5500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923924#comment-13923924
]
Robert Muir commented on LUCENE-5500:
-------------------------------------
Note you will get an exception today: but not until the actual merge. The idea
here is to fail when you configure the thing on indexwriter!
> SortingMergePolicy should error if the Sort refers to the score
> ---------------------------------------------------------------
>
> Key: LUCENE-5500
> URL: https://issues.apache.org/jira/browse/LUCENE-5500
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
>
> It should throw an exception if Sort.needsScores() == true. This does not
> make sense at index-time.
> I think there is no reason for this method to be package-private either (as
> its just useful sugar, it loops over each SortField and checks needsScores).
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]