Skip to main content
What is a difference between afterDistinct and facetingAfterDistinct?
afterDistinct
computes the facet counts of a specific attribute after distinct
has been applied. This only affects a single attribute.
facetingAfterDistinct
affects all attributes and it's applied to all facets of the query.
facetingAfterDistinct
can only be set at query time. You can’t add it as a default setting of the index, while afterDistinct
can be set in your attributesForFaceting

- If you have the same facet values in all records sharing the same distinct key, you can use
facetingAfterDistinct=true
.
- To avoid inconsistent results when the records sharing the same distinct key don’t have the same facet values, use the
afterDistinct
Comments
0 comments
Article is closed for comments.