Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13080

TermsQParserPlugin automaton method fails to sort input

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.5
    • Fix Version/s: 7.7
    • Component/s: query parsers
    • Labels:
      None

      Description

      The contract for Automata.makeStringUnion is that the input is sorted. As BytesRef implements Comparable. The simplest fix would probably to make

      Arrays.sort(bytesRefs);

      The first line of automaton's makeFilter method in TermsQParserPlugin.

       

        Attachments

        1. SOLR-13080.patch
          2 kB
          David Smiley

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dan2097 Daniel Lowe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: