Hi Erick

I downloaded the latest build from (
https://builds.apache.org/job/Solr-3.x/lastSuccessfulBuild/artifact/artifacts/
)
But, I don't find the required class CollapseComponent in the src.
(org.apache.solr.handler.component.CollapseComponent).

The SolrJ in 3.4 does seem to have something like GroupResponse,
GroupCommand classes, which might be the ones I am looking for (though I am
not very sure).


Regards
Sowmya.

On Tue, Aug 30, 2011 at 5:14 PM, Erick Erickson <erickerick...@gmail.com>wrote:

> Ahhh, see: https://issues.apache.org/jira/browse/SOLR-2637
>
> Short form: It's in 3.4, not 3.3.
>
> So, your choices are:
> 1> parse the XML yourself
> 2> get a current 3x build (as in one of the nightlys) and use SolrJ there.
>
> Best
> Erick
>
> On Tue, Aug 30, 2011 at 11:09 AM, Sowmya V.B. <vbsow...@gmail.com> wrote:
> > Hi Erick
> >
> > Yes, I did see the XML format. But, I did not understand how to read the
> > response using SolrJ.
> >
> > I found some information about Collapse Component on googling, which
> looks
> > like a normal Solr XML results format.
> >
> http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/
> >
> > However, this class CollapseComponent does not seem to exist in Solr
> > 3.3. (org.apache.solr.handler.component.CollapseComponent)
> > was the component mentioned in that link, which is not there in Solr3.3
> > class files.
> >
> > Sowmya.
> >
> > On Tue, Aug 30, 2011 at 4:48 PM, Erick Erickson <erickerick...@gmail.com
> >wrote:
> >
> >> 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
> >> > ----------------------------------------------------
> >> >
> >>
> >
> >
> >
> > --
> > Sowmya V.B.
> > ----------------------------------------------------
> > Losing optimism is blasphemy!
> > http://vbsowmya.wordpress.com
> > ----------------------------------------------------
> >
>



-- 
Sowmya V.B.
----------------------------------------------------
Losing optimism is blasphemy!
http://vbsowmya.wordpress.com
----------------------------------------------------

Reply via email to