: query.setParam(GroupParams.GROUP_MAIN, true);
...
: GroupResponse groupResponse = response.getGroupResponse(); // null
:
: Search result is ok, QueryResponse contains docs I searched for. But group
: response is always null. Did I miss something, some magic parameter for
Here is how i have previously used grouping. Note i am using Solr 3.5:
SolrQuery query = new SolrQuery("");
query.setRows(GROUPING_LIMIT);
query.setParam("group", Boolean.TRUE);
query.setParam("group.field", "GROUP_FIELD");
This seems to work for me.
On Fri, Nov 30, 2012 at 1:17 PM, Roman Slav
Hi guys,
I have problem with grouping in Solr 4.0 using Solrj api. I need this:
search some documents limited with solr query, group them by one field
and return total count of groups.
There is param 'group.ngroups' for adding groups count into group
response. Sounds easy, so I wrote something