If you see the last comment on: https://issues.apache.org/jira/browse/SOLR-6143
You'll see there is a discussion starting about adding this feature. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Jun 19, 2015 at 4:14 PM, Joel Bernstein <joels...@gmail.com> wrote: > The CollapsingQParserPlugin does not provide facet counts that are them > same as the group.facet feature in Grouping. It provides facet counts that > behave like group.truncate. > > The CollapsingQParserPlugin only collapses the result set. The facets > counts are then generated for the collapsed result set by the > FacetComponent. > > This has been a hot topic of late. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Fri, Jun 19, 2015 at 3:54 PM, Carlos Maroto <charlie.mar...@gmail.com> > wrote: > >> Hi, >> >> We are comparing results between Field Collapsing (&group* parameters) and >> CollapseQParserPlugin. We noticed that some facets are returning >> incorrect >> counts. >> >> Here are the relevant parameters of one of our test queries: >> >> Field Collapsing: >> ----------------------- >> >> q=red%20dress&facet=true&facet.mincount=1&facet.limit=-1&facet.field=searchcolorfacet&group=true&group.field=groupid&group.facet=true >> &group.ngroups=true >> >> ngroups = 5964 >> >> <lst name="searchcolorfacet"> >> ... >> <int name="red">11</int> >> ... >> </lst> >> >> CollapseQParserPlugin: >> >> ----------------------------------q=red%20dress&facet=true&facet.mincount=1&facet.limit=-1&facet.field=searchcolorfacet&fq=%7B!collapse%20field=groupid%7D >> >> numFound = 5964 (same) >> >> <lst name="searchcolorfacet"> >> ... >> <int name="red">8</int> >> ... >> </lst> >> >> When we change the CollapseQParserPlugin query by adding >> "&fq=searchcolorfacet:red", the numFound value is 11, effectively showing >> all 11 hits with that color. The facet count for red now shows the >> correct >> value of 11 as well. >> >> Has anyone seeing something similar? >> >> Thanks, >> Carlos >> > >