Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5500

SortingMergePolicy should error if the Sort refers to the score

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: