File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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---
67synonyms_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();
You can’t perform that action at this time.
0 commit comments