[
https://issues.apache.org/jira/browse/SOLR-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040478#comment-13040478
]
Martijn van Groningen commented on SOLR-2553:
---------------------------------------------
This looks like an interesting feature. I only think the query string parameter
need be different. Otherwise folks might confuse it with just grouping on two
different fields.
I propose something like this to achieve your first example:
group.field=location&group.field.location=type
This syntax would support grouping in N groups deep.
I also think that this feature would be costly for performance. Basically for
each group level you need to execute search. The current grouping is in most
cases already executing two searches. The single pass collectors do grouping in
one search.
> Nested Field Collapsing
> -----------------------
>
> Key: SOLR-2553
> URL: https://issues.apache.org/jira/browse/SOLR-2553
> Project: Solr
> Issue Type: Improvement
> Components: SearchComponents - other
> Reporter: Martijn Laarman
>
> Currently specifying grouping on multiple fields returns multiple datasets.
> It would be nice if Solr supported cascading / nested grouping by applying
> the first group over the entire result set, the next over each group and so
> forth and so forth.
> Even if limited to supporting nesting grouping 2 levels deep would cover alot
> of use cases.
> group.field=location&group.field=type
> -Location X
> ---Type 1
> -----documents
> ---Type 2
> ----documents
> -Location Y
> ---Type 1
> ----documents
> ---Type 2
> ----documents
> instead of
> -Location X
> -- documents
> -Location Y
> --documents
> -Type 1
> --documents
> -Type2
> --documents
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]