You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2015/04/23 21:30:38 UTC

[jira] [Comment Edited] (SOLR-7387) Unable to use any function other than sum as sorting parameter for newly added solr facet aggregation functions

    [ https://issues.apache.org/jira/browse/SOLR-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14509636#comment-14509636 ] 

Yonik Seeley edited comment on SOLR-7387 at 4/23/15 7:30 PM:
-------------------------------------------------------------

Here's a patch that fixes min,max,avg, and unique for distributed search.


was (Author: yseeley@gmail.com):
Here's a patch that fixes min,max,avg, and unique.

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org