Skip to content

Commit

Permalink
Update .code-samples.meilisearch.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali authored May 2, 2023
1 parent e7e61bb commit 0298555
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down

0 comments on commit 0298555

Please sign in to comment.