-
afterDistinct
computes the facet counts of a specific attribute afterdistinct
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, whileafterDistinct
can be set in yourattributesForFaceting
- 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