Solr
  1. Solr
  2. SOLR-947

QueryParsing.toString() should check ConstantScoreRangeQuery before RangeQuery

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: search
    • Labels:
      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

      1. SOLR-947.patch
        3 kB
        Koji Sekiguchi

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Koji Sekiguchi
            Reporter:
            Koji Sekiguchi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development