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