Lucene - Core
  1. Lucene - Core
  2. LUCENE-5500

SortingMergePolicy should error if the Sort refers to the score

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8, Trunk
    • 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).

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development