On 10/6/2016 12:04 AM, Lewin Joy (TMS) wrote: > There is a requirement to take an average on "Amount" field against > each "code" field. And then calculate the averages on this averages. > Since my "code" field has a very huge cardinality, which could be > around 200,000 or even in millions ; It gets highly complex to > calculate the average of averages through Java. Even Solr takes a huge > time listing the averages. And the JSON response size becomes huge. Is > there some way we can tackle this? Any way we stats on stats?
I wasn't sure what you meant with the first sentence I quoted above, but in order to get statistics from your index that are relevant for the results of a query, you probably want the stats component. https://cwiki.apache.org/confluence/display/solr/The+Stats+Component Thanks, Shawn