diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 310ea910..984b5a1f 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -3,6 +3,47 @@ # the documentation on build # You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples --- +multi_search_1: |- + await client.multiSearch(MultiSearchQuery(queries: [ + SearchQuery( + query: "pooh", + indexUid: "movies", + limit: 5 + ), + SearchQuery( + query: "nemo", + indexUid: "movies", + limit: 5 + ), + SearchQuery( + query: "us", + indexUid: "movies_ratings" + ), + ])); +faceted_search_2: |- + await client.multiSearch(MultiSearchQuery(queries: [ + SearchQuery( + indexUid: 'books', + facets: ['language', 'genres', 'author', 'format'], + filter: [['language = English', 'language = French'], ['genres = Fiction']] + ), + SearchQuery( + indexUid: 'books', + facets: ['language'], + filter: [['genres = Fiction']] + ), + SearchQuery( + indexUid: "books", + facets: ['genres'], + filter: [['language = English', 'language = French']] + ), + ])); +faceted_search_update_settings_1: |- + await client.index('books').updateFilterableAttributes(['genres', 'rating', 'language']); +search_parameter_guide_facet_stats_1: |- + await client.index('movie_ratings').search('Batman', facets: ['genres', 'rating']); +faceted_search_1: |- + await client.index('books').search('', facets: ['genres', 'rating', 'language']); async_guide_filter_by_date_1: |- await client.getTasks(params: TasksQuery(afterEnqueuedAt: DateTime(2020, 10, 11, 11, 49, 53))); async_guide_multiple_filters_1: |-