attributesForFaceting property
Attributes used for faceting. Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. Modifiers - filterOnly(\"ATTRIBUTE\")
. Allows the attribute to be used as a filter but doesn't evaluate the facet values. - searchable(\"ATTRIBUTE\")
. Allows searching for facet values. - afterDistinct(\"ATTRIBUTE\")
. Evaluates the facet count after deduplication with distinct
. This ensures accurate facet counts. You can apply this modifier to searchable facets: afterDistinct(searchable(ATTRIBUTE))
.
Implementation
@JsonKey(name: r'attributesForFaceting')
final List<String>? attributesForFaceting;