[ 
https://issues.apache.org/jira/browse/SOLR-2246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bill Bell closed SOLR-2246.
---------------------------

    Resolution: Duplicate

> Need group.facet.after = true to get facet counts after group by
> ----------------------------------------------------------------
>
>                 Key: SOLR-2246
>                 URL: https://issues.apache.org/jira/browse/SOLR-2246
>             Project: Solr
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1
>            Reporter: Bill Bell
>             Fix For: 4.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Please add group.facet.after = true option. 
> The use case is that we want the facets numbers to count only the 1st item in 
> each group if using the default limit of 1. This first item is what we show 
> on the page, 
> and facets needs to reflect what is shown on the page. The facet field should 
> add the subsections when using "&group.facet.after=true"
> http://localhost:8983/solr/select?defType=dismax&q=Bill&facet=true&facet.field=gender&group=true&group.field=hgid&ident=true&fl=hgid,gender&sort=gender
>  asc
> hgid:1
> gender:M
> hgid:1
> gender:F
> hgid:1
> gender:M
> -- when grouping this returns 1 row, with gender:F.
> hgid:2
> gender:F
> hgid:2
> gender:M
> -- when grouping this returns 1 row, with gender:F.
> hgid:3
> gender:M
> -- when grouping this returns 1 row, with gender:M.
> {code}
> <lst name="facet">
>     <lst group="hgid">
>       <lst name="facet_counts">
>         <lst name="facet_queries"/>
>         <lst name="facet_fields">
>                       <lst name="gender">
>                               <int name="M">1</int>
>                               <int name="F">2</int>
>                       </lst>
>         </lst>
>         <lst name="facet_dates"/>
>         <lst name="facet_ranges"/>
>       </lst>
>     </lst>
>       <!-- could have other ones -->
>       <!-- this is the total counts -->
>     <lst name="facet_counts">
>         <lst name="facet_queries"/>
>         <lst name="facet_fields">
>                       <lst name="gender">
>                               <int name="M">4</int>
>                               <int name="F">2</int>
>                       </lst>
>         </lst>
>         <lst name="facet_dates"/>
>         <lst name="facet_ranges"/>
>     </lst>
> </lst>
> {code}
> After group.field=<field> we want the facet counts to reflect the documents 
> that have been grouped.

--
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]

Reply via email to