Skip to content

Commit

Permalink
Merge pull request #61 from meilisearch/filterable_attributes
Browse files Browse the repository at this point in the history
Rename attributes_for_faceting into filterable_attributes
  • Loading branch information
alallema authored Jul 5, 2021
2 parents 5db4c40 + 4625c6f commit 23af865
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/src/index_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class IndexSettings {
this.synonyms,
this.stopWords,
this.rankingRules,
this.attributesForFaceting,
this.filterableAttributes,
this.distinctAttribute,
this.searchableAttributes = allAttributes,
this.displayedAttributes = allAttributes,
Expand All @@ -21,7 +21,7 @@ class IndexSettings {
List<String>? rankingRules;

/// Attributes to use as [facets](https://docs.meilisearch.com/reference/features/faceted_search.html)
List<String>? attributesForFaceting;
List<String>? filterableAttributes;

/// Search returns documents with distinct (different) values of the given field
List<String>? distinctAttribute;
Expand All @@ -36,7 +36,7 @@ class IndexSettings {
'synonyms': synonyms,
'stopWords': stopWords,
'rankingRules': rankingRules,
'attributesForFaceting': attributesForFaceting,
'filterableAttributes': filterableAttributes,
'distinctAttribute': distinctAttribute,
'searchableAttributes': searchableAttributes,
'displayedAttributes': displayedAttributes,
Expand All @@ -48,8 +48,8 @@ class IndexSettings {
.map((key, value) => MapEntry(key, value.cast<String>())),
stopWords: (map['stopWords'] as List?)?.cast<String>(),
rankingRules: (map['rankingRules'] as List?)?.cast<String>(),
attributesForFaceting:
(map['attributesForFaceting'] as List?)?.cast<String>(),
filterableAttributes:
(map['filterableAttributes'] as List?)?.cast<String>(),
distinctAttribute: (map['distinctAttribute'] as List?)?.cast<String>(),
searchableAttributes:
(map['searchableAttributes'] as List?)?.cast<String>(),
Expand Down

0 comments on commit 23af865

Please sign in to comment.