Skip to content

Commit ec887b0

Browse files
committed
Fix indent code-sample
1 parent feefaa5 commit ec887b0

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.code-samples.meilisearch.yaml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -92,48 +92,48 @@ get_settings_1: |-
9292
update_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)
139139
reset_settings_1: |-

0 commit comments

Comments
 (0)