lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <edwinye...@gmail.com>
Subject JSON Facet Syntax Sorting
Date Wed, 26 Oct 2016 07:16:14 GMT
Hi,

I'm using Solr 6.2.1.

For the JSON Facet Syntax, are we able to sort on multiple values at one go?

Like for example, if I want to sort by count, follow by the average price.
is this the correct way tot do?

 json.facet={
   categories:{
     type : terms,
     field : cat,
     sort : { count : desc},
     sort : { x : desc},
     facet:{
       x : "avg(price)",
       y : "sum(price)"
     }
   }
 }


Regards,
Edwin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message