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
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
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
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
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
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