On Fri, Mar 13, 2015 at 1:43 PM, Dominique Bejean
<dominique.bej...@eolya.fr> wrote:
> Thank you for the response
>
> This is something Heliosearch can do. Ionic Seeley, created a JIRA ticket
> to back port this feature to Solr 5.

Oh, I'm charged now, am I?  ;-)

I'ts been committed, and will be in Solr 5.1

Here's an example of sorting the buckets by something other than count:

$ curl http://localhost:8983/solr/query -d 'q=*:*&
 json.facet={
   categories:{
     terms:{
       field : cat,
       sort : "x desc",   // can also use sort:{x:desc}
       facet:{
         x : "avg(price)",
         y : "sum(price)"
       }
     }
   }
 }
'

-Yonik

Reply via email to