Re: Results Group-By using SolrJ

2011-08-14 Thread Omri Cohen
Thanks a lot!! Exactly what I was looking for.. That solved this! On Sun, Aug 14, 2011 at 6:23 PM, Martijn v Groningen < martijn.v.gronin...@gmail.com> wrote: > Hi Omri, > > SOLR-2637 was concerned with adding grouped response parsing. There is no > convenience method for grouping, but you can us

Re: Results Group-By using SolrJ

2011-08-14 Thread Martijn v Groningen
Hi Omri, SOLR-2637 was concerned with adding grouped response parsing. There is no convenience method for grouping, but you can use the normal SolrQuery#set(...) methods to enable grouping. The following code should enable grouping via SolrJ api: SolrQuery query = new SolrQuery(); query.set(GroupP

Results Group-By using SolrJ

2011-08-14 Thread Omri Cohen
Hi All, I am trying to group by results using SolrJ. According to https://issues.apache.org/jira/browse/SOLR-2637 the feature was added, so I upgraded to SolrJ-3.4-Snapshot and I can see the necessary method for grouping in QueryResponse, which is getGroupResponse(). The only thing left that I don