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

Exception when using Query Function inside Scale Function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7, 6.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: