|
3 | 3 | # the documentation on build
|
4 | 4 | # You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
|
5 | 5 | ---
|
| 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 | +
|
6 | 68 | get_one_index_1: |-
|
7 | 69 | client.get_index('movies')
|
8 | 70 | list_all_indexes_1: |-
|
@@ -510,7 +572,7 @@ getting_started_faceting: |-
|
510 | 572 | client.index('movies').update_faceting_settings({'maxValuesPerFacet': 2})
|
511 | 573 | getting_started_pagination: |-
|
512 | 574 | client.index('movies').update_pagination_settings({'maxTotalHits': 500})
|
513 |
| -faceted_search_update_settings_1: |- |
| 575 | +filtering_update_settings_1: |- |
514 | 576 | client.index('movies').update_filterable_attributes([
|
515 | 577 | 'director',
|
516 | 578 | 'genres',
|
|
0 commit comments