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

throw exception during sort for misconfigured field

    XMLWordPrintableJSON

    Details

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

      Description

      If you sort on field X, and it has no docvalues, today it will silently treat it as "all values missing". This can be very confusing since it just means nothing will happen at all.

      But there is a distinction between "no docs happen to have a value for this field" and "field isn't configured correctly". The latter should get an exception, telling the user to index docvalues, or wrap the reader with UninvertingReader.

        Attachments

        1. LUCENE-6064.patch
          47 kB
          Robert Muir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: