Skip to content

Commit d0f9eef

Browse files
committed
Update .code-samples.meilisearch.yaml
1 parent f195eee commit d0f9eef

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,68 @@
33
# the documentation on build
44
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55
---
6+
multi_search_1: |-
7+
see cURL: https://github.com/meilisearch/documentation/blob/5ec3df3844f603f0958d91a0c5cfc38bc57656af/.code-samples.meilisearch.yaml#L996-L1017
8+
multi-search with data: { "queries": [
9+
{
10+
"indexUid": "movies",
11+
"q": "pooh",
12+
"limit": 5
13+
},
14+
{
15+
"indexUid": "movies",
16+
"q": "nemo",
17+
"limit": 5
18+
},
19+
{
20+
"indexUid": "movie_ratings",
21+
"q": "us"
22+
}
23+
]
24+
}
25+
faceted_search_update_settings_1: |-
26+
See cURL: https://github.com/meilisearch/documentation/blob/5ec3df3844f603f0958d91a0c5cfc38bc57656af/.code-samples.meilisearch.yaml#L1018-L1024
27+
on the books index: Add "genres", "rating", "language" as filterable attributes
28+
faceted_search_1: |-
29+
See cURL: https://github.com/meilisearch/documentation/blob/5ec3df3844f603f0958d91a0c5cfc38bc57656af/.code-samples.meilisearch.yaml#L1025-L1034
30+
Search books index with data: {
31+
"q": "classic",
32+
"facets": [
33+
"genres", "rating", "language"
34+
]
35+
}
36+
search_parameter_guide_facet_stats_1: |-
37+
See cURL: https://github.com/meilisearch/documentation/blob/5ec3df3844f603f0958d91a0c5cfc38bc57656af/.code-samples.meilisearch.yaml#L1035-L1042
38+
search movie_ratings index with data: '{
39+
"q": "Batman",
40+
"facets": ["genres", "rating"]
41+
}
42+
faceted_search_2: |-
43+
see cURL: https://github.com/meilisearch/documentation/blob/5ec3df3844f603f0958d91a0c5cfc38bc57656af/.code-samples.meilisearch.yaml#L1043-L1065
44+
multi-search with data: {
45+
"queries": [
46+
{
47+
"indexUid": "books",
48+
"facets": ["language", "genres", "author", "format"],
49+
"filter": [["language = English", "language = French"], ["genres = Fiction"]]
50+
},
51+
{
52+
"indexUid": "books",
53+
"facets": ["language"],
54+
"filter": [["genres = Fiction"]]
55+
},
56+
{
57+
"indexUid": "books",
58+
"facets": ["genres"],
59+
"filter": [["language = English", "language = French"]]
60+
}
61+
]
62+
}
63+
geosearch_guide_filter_usage_3: |-
64+
see cURL: https://github.com/meilisearch/documentation/blob/c8ab47d004753ce2241a756eff14ade448d70a93/.code-samples.meilisearch.yaml#L696-L700
65+
Search on `restaurants` with data:
66+
'{ "filter": "_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])" }'
67+
668
get_one_index_1: |-
769
client.get_index('movies')
870
list_all_indexes_1: |-
@@ -510,7 +572,7 @@ getting_started_faceting: |-
510572
client.index('movies').update_faceting_settings({'maxValuesPerFacet': 2})
511573
getting_started_pagination: |-
512574
client.index('movies').update_pagination_settings({'maxTotalHits': 500})
513-
faceted_search_update_settings_1: |-
575+
filtering_update_settings_1: |-
514576
client.index('movies').update_filterable_attributes([
515577
'director',
516578
'genres',

0 commit comments

Comments
 (0)