Re: how to extract stats component with solrj 4.9.0

2014-07-28 Thread Edith Au
AM, Edith Au wrote: > > I tried getFieldStatsInfo(). I got a stats of the stats with this method > > (ie. sum (sum(count)) of all the group'ed results. But it is not what I > > want. I want a list of stats (ie. sum(count), group by block num). > With a > > debugger,

Re: how to extract stats component with solrj 4.9.0

2014-07-28 Thread Edith Au
t, > Erick > > > On Sat, Jul 26, 2014 at 3:36 PM, Edith Au wrote: > > > I have a solr query like this > > > > q=categories:cat1 OR > > categories:cat2&stats=true&stats.field=count&stats.facet=block_num > > > > Basically, I want to get

how to extract stats component with solrj 4.9.0

2014-07-26 Thread Edith Au
I have a solr query like this q=categories:cat1 OR categories:cat2&stats=true&stats.field=count&stats.facet=block_num Basically, I want to get the sum(count) group by block num. This query works on a browser. But with solrj, I could not access the stats fields from the Response obj. I can do a