-
afterDistinctcomputes the facet counts of a specific attribute afterdistincthas been applied. This only affects a single attribute. -
facetingAfterDistinctaffects all attributes and it's applied to all facets of the query. -
facetingAfterDistinctcan only be set at query time. You can’t add it as a default setting of the index, whileafterDistinctcan be set in yourattributesForFaceting -
afterDistinctshould only be used on attributes that are shared between all records with a common distinct key. Using it on attributes that have different values within a distinct group will lead to missing facet values & inconsistent facet counts. - Only use
facetingAfterDistinct=trueif all the facets queried fit theafterDistinctcriterion of shared facet values within each group. - It may be advisable to hide facet counts of facets not using
afterDistinctto avoid inconsistent counts across facets (some counting groups & others counting individual records)