This might help: https://lucene.apache.org/solr/guide/7_4/json-facet-api.html

basically, if you can construct facets that correspond to your groups, you can
do some statistical functions on them.

Best,
Erick

> On Jan 13, 2020, at 2:18 AM, Saurabh Sharma <saurabh.infoe...@gmail.com> 
> wrote:
> 
> Hi All,
> 
> I have a requirement where I need to sort the group on average of a
> particular field.
> The motive here is to compute the average of the value of a field across
> all documents of the group and then sort the group on the basis of
> commuted average.
> 
> Is there any approach that can be used to solve this problem?
> 
> 
> Thanks
> Saurabh Sharma

Reply via email to