Vamsi Krishna D created SOLR-7387:
-------------------------------------

             Summary: Unable to use any function other than sum as sorting 
parameter for newly added solr facet aggregation functions 
                 Key: SOLR-7387
                 URL: https://issues.apache.org/jira/browse/SOLR-7387
             Project: Solr
          Issue Type: Task
          Components: faceting
    Affects Versions: 5.1
         Environment: 

            Reporter: Vamsi Krishna D
            Priority: Blocker
             Fix For: 5.1


The error thrown is 
"error":{
    "msg":"org.apache.solr.search.facet.AvgAgg$1 cannot be cast to 
org.apache.solr.search.facet.FacetSortableMerger",

and  input json request is 
responseHeader":{
    "status":500,
    "QTime":24,
    "params":{
      "q":"*:*",
      "json.facet":"{   categories:{     terms:{       field :something,       
limit :something,       sort : { y : desc},       facet:{\t y : 
\"avg(sub(amount,count))\"       }     }   } }",
      "fq":"some thing else",
      "rows":"0"}},



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to