lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Bernstein <joels...@gmail.com>
Subject Re: CollapseQParserPluging Incorrect Facet Counts
Date Fri, 19 Jun 2015 20:14:58 GMT
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.maroto@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message