[ 
https://issues.apache.org/jira/browse/SOLR-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037562#comment-13037562
 ] 

Martijn van Groningen commented on SOLR-2524:
---------------------------------------------

bq. Will this also be applied to 4.0 and the 3.2 branch?
This patch will be applied on the 3x branch. This patch serves as basis for the 
work needed to make the trunk use the grouping module. But I think that will be 
addressed in a different issue.

bq. OK. I am trying to understand group.totalCount=grouped... I am not seeing 
the facets change in Solr.
That is because the group.totalCount parameter only has effect on the total 
count and not the facets.

So executing the same query with group.totalCount=GROUPED:
{code:xml}
<lst name="grouped">
   <lst name="inStock">
     <int name="matches">2</int>
     <arr name="groups">
        <lst>
           <bool name="groupValue">true</bool>
{code}

So executing the same query with group.totalCount=UNGROUPED (default):
{code:xml}
<lst name="grouped">
   <lst name="inStock">
      <int name="matches">17</int>
         <arr name="groups">
            <lst>
               <bool name="groupValue">true</bool>
{code}
So having facets based on groups is the next step :). I haven't implemented 
this yet. But I will properly use the group.docSet parameter for that. Because 
it will not only have a effect on the FacetComponent, but also the 
StatsComponent. I think we should first focus on getting the current patch 
committed. And then tackle this issue. Also to implement this we also need a 
other group collector.  

> Adding grouping to Solr 3x
> --------------------------
>
>                 Key: SOLR-2524
>                 URL: https://issues.apache.org/jira/browse/SOLR-2524
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 3.2
>            Reporter: Martijn van Groningen
>            Assignee: Michael McCandless
>         Attachments: SOLR-2524.patch, SOLR-2524.patch
>
>
> Grouping was recently added to Lucene 3x. See LUCENE-1421 for more 
> information.
> I think it would be nice if we expose this functionality also to the Solr 
> users that are bound to a 3.x version.
> The grouping feature added to Lucene is currently a subset of the 
> functionality that Solr 4.0-trunk offers. Mainly it doesn't support grouping 
> by function / query.
> The work involved getting the grouping contrib to work on Solr 3x is 
> acceptable. I have it more or less running here. It supports the response 
> format and request parameters (expect: group.query and group.func) described 
> in the FieldCollapse page on the Solr wiki.
> I think it would be great if this is included in the Solr 3.2 release. Many 
> people are using grouping as patch now and this would help them a lot. Any 
> thoughts?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to