Skip to content

Commit fb83e1d

Browse files
committed
Fix code sample
1 parent 3e93c11 commit fb83e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.code-samples.meilisearch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Every example written here will be automatically fetched by
33
# the documentation on build
44
# You can read more on https://github.com/meilisearch/documentation/tree/main/learn
5+
# See the original at https://github.com/meilisearch/documentation/blob/main/.code-samples.meilisearch.yaml
56
---
67
synonyms_guide_1: |-
78
let mut synonyms = std::collections::HashMap::new();
@@ -1682,11 +1683,10 @@ facet_search_2: |-
16821683
let mut facet_sort_setting = BTreeMap::new();
16831684
facet_sort_setting.insert("genres".to_string(), FacetSortValue::Count);
16841685
let faceting = FacetingSettings {
1685-
max_values_per_facet: 5,
1686+
max_values_per_facet: 100,
16861687
sort_facet_values_by: Some(facet_sort_setting),
16871688
};
16881689
1689-
let client = client::new("http://localhost:7700", Some("apiKey"));
16901690
let res = client.index("books")
16911691
.set_faceting(&faceting)
16921692
.execute()
@@ -1787,4 +1787,4 @@ reset_localized_attribute_settings_1: |-
17871787
.index("books")
17881788
.reset_localized_attributes()
17891789
.await
1790-
.unwrap();
1790+
.unwrap();

0 commit comments

Comments
 (0)