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

SortingMergePolicy should error if the Sort refers to the score

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.8, 6.0
    • None
    • None
    • 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

        1. LUCENE-5500.patch
          3 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: