lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: Facet pivot sorting while combining Stats Component With Pivots in Solr 5
Date Thu, 19 Mar 2015 21:48:10 GMT
On Fri, Mar 13, 2015 at 1:43 PM, Dominique Bejean
<dominique.bejean@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

Mime
View raw message