You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/03/07 17:14:45 UTC
[jira] [Resolved] (LUCENE-5500) SortingMergePolicy should error if
the Sort refers to the score
[ https://issues.apache.org/jira/browse/LUCENE-5500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-5500.
---------------------------------
Resolution: Fixed
Fix Version/s: 5.0
4.8
> 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
> Fix For: 4.8, 5.0
>
> Attachments: LUCENE-5500.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org