attributeForDistinct property

  1. @JsonKey(name: r'attributeForDistinct')
String? attributeForDistinct
final

Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine attributeForDistinct with the distinct search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use the afterDistinct modifier of the attributesForFaceting setting. This applies faceting after deduplication, which will result in accurate facet counts.

Implementation

@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;