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

TermsQParserPlugin automaton method fails to sort input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 7.5
    • 7.7
    • query parsers
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: