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

Exception when using Query Function inside Scale Function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.6
    • 4.7, 6.0
    • None
    • None

    Description

      If you try to use the query function inside the scale function, it throws the following exception:
      org.apache.lucene.search.BooleanQuery$BooleanWeight cannot be cast to
      org.apache.lucene.queries.function.valuesource.ScaleFloatFunction$ScaleInfo

      Here is an example request that invokes this:
      http://localhost:8983/solr/collection1/select?q=*:*&fl=scale(query($x),0,5)&x=hello)

      Attachments

        1. SOLR-5524.patch
          2 kB
          Trey Grainger

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            solrtrey Trey Grainger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: