@@ -92,48 +92,48 @@ get_settings_1: |-
9292update_settings_1 : |-
9393 distinctAttribute := "movie_id"
9494 settings := meilisearch.Settings{
95- RankingRules: []string{
96- "words",
97- "typo",
98- "proximity",
99- "attribute",
100- "sort",
101- "exactness",
102- "release_date:desc",
103- "rank:desc",
104- },
105- DistinctAttribute: &distinctAttribute,
106- SearchableAttributes: []string{
107- "title",
108- "overview",
109- "genres",
110- },
111- DisplayedAttributes: []string{
112- "title",
113- "overview",
114- "genres",
115- "release_date",
116- },
117- StopWords: []string{
118- "the",
119- "a",
120- "an",
121- },
122- SortableAttributes: []string{
123- "title",
124- "release_date",
125- },
126- Synonyms: map[string][]string{
127- "wolverine": []string{"xmen", "logan"},
128- "logan": []string{"wolverine"},
129- },
130- TypoTolerance: &meilisearch.TypoTolerance{
131- MinWordSizeForTypos: meilisearch.MinWordSizeForTypo{
132- OneTypo: 8,
133- TwoTypos: 10,
134- },
135- DisableOnAttributes: []string{"title"},
136- },
95+ RankingRules: []string{
96+ "words",
97+ "typo",
98+ "proximity",
99+ "attribute",
100+ "sort",
101+ "exactness",
102+ "release_date:desc",
103+ "rank:desc",
104+ },
105+ DistinctAttribute: &distinctAttribute,
106+ SearchableAttributes: []string{
107+ "title",
108+ "overview",
109+ "genres",
110+ },
111+ DisplayedAttributes: []string{
112+ "title",
113+ "overview",
114+ "genres",
115+ "release_date",
116+ },
117+ StopWords: []string{
118+ "the",
119+ "a",
120+ "an",
121+ },
122+ SortableAttributes: []string{
123+ "title",
124+ "release_date",
125+ },
126+ Synonyms: map[string][]string{
127+ "wolverine": []string{"xmen", "logan"},
128+ "logan": []string{"wolverine"},
129+ },
130+ TypoTolerance: &meilisearch.TypoTolerance{
131+ MinWordSizeForTypos: meilisearch.MinWordSizeForTypo{
132+ OneTypo: 8,
133+ TwoTypos: 10,
134+ },
135+ DisableOnAttributes: []string{"title"},
136+ },
137137 }
138138 client.Index("movies").UpdateSettings(&settings)
139139reset_settings_1 : |-
0 commit comments