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

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

I think the best place to ask questions like this is the solr-user list.
Here are my answers:
1. The fq filters the query result (q param) and if grouping is used all groups 
(fields, functions and queries). In your example this means that you have one 
group result with documents the match on things and type:video. Maybe the 
group.query can best be seen as a subquery of the main query (q & fq 
parameters). 
2. I'm not sure what you mean here. So based on the order in the query result 
you want to group?
3. Well it should obay the sort param. If this is not the case then I think it 
is a bug.
4. The group.main parameter renders the regular ungrouped result set. In this 
format only one group can be displayed. I believe the last group you specify 
(field, func or query) is actually returned / executed.

> Adding grouping to Solr 3x
> --------------------------
>
>                 Key: SOLR-2524
>                 URL: https://issues.apache.org/jira/browse/SOLR-2524
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Martijn van Groningen
>            Assignee: Martijn van Groningen
>             Fix For: 3.3
>
>         Attachments: SOLR-2524.patch, SOLR-2524.patch, SOLR-2524.patch, 
> SOLR-2524.patch, 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