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

QueryParsing.toString() should check ConstantScoreRangeQuery before RangeQuery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.4
    • search
    • None

    Description

      This

      QueryParsing.toString()
      if (query instanceof TermQuery) {
          :
      } else if (query instanceof RangeQuery) {
          :
      } else if (query instanceof ConstantScoreRangeQuery) {
          :
      }
      :
      

      should be

      QueryParsing.toString()
      if (query instanceof TermQuery) {
          :
      } else if (query instanceof ConstantScoreRangeQuery) {
      	:
      } else if (query instanceof RangeQuery) {
      	:
      }
      :
      

      This causes NPE when open ended range query (price:[1 TO *]) with debugQuery=on.

      This is reported on the thread:
      http://www.nabble.com/http-internal-error-if-i-enable-debugQuery%3Don-td21210570.html

      Attachments

        1. SOLR-947.patch
          3 kB
          Koji Sekiguchi

        Activity

          People

            koji Koji Sekiguchi
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: