Have you looked at the XML (or JSON) response format?
You're right, it is different and you have to parse it
differently, there are move levels. Try this query
and you'll see the format (default data set).

http://localhost:8983/solr/select?q=*:*&group=on&group.field=manu_exact


Best
Erick

On Tue, Aug 30, 2011 at 9:25 AM, Sowmya V.B. <vbsow...@gmail.com> wrote:
> Hi All
>
> I am trying to use FieldCollapsing feature in Solr. On the Solr admin
> interface, I give "...&group=true&group.field=fieldA" and I can see grouped
> results.
> But, I am not able to figure out how to read those results in that order on
> java.
>
> Something like: SolrDocumentList doclist = response.getResults();
> gives me a set of results, on which I iterate, and get something like
> doclist.get(1).getFieldValue("title") etc.
>
> After grouping, doing the same step throws me error (apparently, because the
> returned xml formats are different too).
>
> How can I read groupValues and thereby other fieldvalues of the documents
> inside that group?
>
> S.
> --
> Sowmya V.B.
> ----------------------------------------------------
> Losing optimism is blasphemy!
> http://vbsowmya.wordpress.com
> ----------------------------------------------------
>

Reply via email to