diff --git a/lib/src/index_settings.dart b/lib/src/index_settings.dart index 9bdf916e..17f76e5c 100644 --- a/lib/src/index_settings.dart +++ b/lib/src/index_settings.dart @@ -3,7 +3,7 @@ class IndexSettings { this.synonyms, this.stopWords, this.rankingRules, - this.attributesForFaceting, + this.filterableAttributes, this.distinctAttribute, this.searchableAttributes = allAttributes, this.displayedAttributes = allAttributes, @@ -21,7 +21,7 @@ class IndexSettings { List? rankingRules; /// Attributes to use as [facets](https://docs.meilisearch.com/reference/features/faceted_search.html) - List? attributesForFaceting; + List? filterableAttributes; /// Search returns documents with distinct (different) values of the given field List? distinctAttribute; @@ -36,7 +36,7 @@ class IndexSettings { 'synonyms': synonyms, 'stopWords': stopWords, 'rankingRules': rankingRules, - 'attributesForFaceting': attributesForFaceting, + 'filterableAttributes': filterableAttributes, 'distinctAttribute': distinctAttribute, 'searchableAttributes': searchableAttributes, 'displayedAttributes': displayedAttributes, @@ -48,8 +48,8 @@ class IndexSettings { .map((key, value) => MapEntry(key, value.cast())), stopWords: (map['stopWords'] as List?)?.cast(), rankingRules: (map['rankingRules'] as List?)?.cast(), - attributesForFaceting: - (map['attributesForFaceting'] as List?)?.cast(), + filterableAttributes: + (map['filterableAttributes'] as List?)?.cast(), distinctAttribute: (map['distinctAttribute'] as List?)?.cast(), searchableAttributes: (map['searchableAttributes'] as List?)?.cast(),