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 <s...@elyograg.org> wrote:

> 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 information I want in this private object
> > response._statsInfo.
> >
> > I could grab the information I want with response.toString().  That's
> what
> > I did and parse the string myself for now. :(
>
> Edith,
>
> Everything that's in the QueryResponse is available as a Java object,
> with getHeader and getResponse being the gateways.  The NamedList object
> type that these methods return is a very compact and useful structure,
> created specifically for Solr.  Once you have a NamedList, the data that
> you want might be buried, so the findRecursive method (available with
> SolrJ 4.4.0 and later) can be very useful to navigate the object easily.
>
> Thanks,
> Shawn
>
>

Reply via email to