Refinement menu Widget wrong result counting when grouping/deduplication enabled

Hi,

when I enable grouping/deduplication for an index, the result-counting in the refinement-menus are wrong - in this case I have only 1 result (since it is grouped together by the prop full_slug) but the refinements show up with 5 results.

grouping enabled:

grouping disabled:

I see no option for overriding/configuring this.

Any hints?

Thanks,
Sebastian

Hi @ok1,

This may be a result of the facet counts showing before the distinct/deduplication is applied.

We have a parameter called facetingAfterDistinct: https://www.algolia.com/doc/api-reference/api-parameters/facetingAfterDistinct/?language=javascript

Could you try adding this in the Algolia Dashboard: a custom query parameter in your Dashboard: “+ Add Query Parameter” > "Custom"

Let us know how it goes!

1 Like