Re: how to extract stats component with solrj 4.9.0

2014-07-29 Thread Shawn Heisey
On 7/28/2014 11:12 AM, Edith Au wrote: > I found this method FieldStatsInfo().getFacets() in the Solr 4.9.0 doc. > But it seems to me the method is missing in my Solrj 4.9.0 distribution. > Could this be a bug? or I have a bad distro? If you're sure that you have the 4.9.0 jar, that sounds like

Re: how to extract stats component with solrj 4.9.0

2014-07-28 Thread Edith Au
Thanks Shawn. I found this method FieldStatsInfo().getFacets() in the Solr 4.9.0 doc. But it seems to me the method is missing in my Solrj 4.9.0 distribution. Could this be a bug? or I have a bad distro? On Mon, Jul 28, 2014 at 9:43 AM, Shawn Heisey wrote: > On 7/28/2014 10:08 AM, Edit

Re: how to extract stats component with solrj 4.9.0

2014-07-28 Thread Shawn Heisey
On 7/28/2014 10:08 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, I could see the inf

Re: how to extract stats component with solrj 4.9.0

2014-07-28 Thread Edith Au
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, I could see the information I want in this private object response

Re: how to extract stats component with solrj 4.9.0

2014-07-27 Thread Erick Erickson
Have you tried the getFieldStatsInfo method in the QueryResponse object? Best, 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 the s