[
https://issues.apache.org/jira/browse/SOLR-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yonik Seeley resolved SOLR-7387.
--------------------------------
Resolution: Fixed
OK, sorting by any of the metrics should now work in distributed mode.
> 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: Bug
> Components: faceting
> Affects Versions: 5.1
> Reporter: Vamsi Krishna D
> Fix For: Trunk, 5.2
>
> Attachments: SOLR-7387.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]