Skip to content

Commit

Permalink
Merge #277
Browse files Browse the repository at this point in the history
277: Update code-samples for Meilisearch v1.1.0 r=brunoocasali a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
  • Loading branch information
3 people authored May 2, 2023
2 parents f50aa72 + 0298555 commit b9d8e86
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .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 Expand Up @@ -397,7 +438,7 @@ getting_started_sorting: |-
await client.index('meteorites').search('', sort: ['mass:asc'], filter: 'mass < 200');
getting_started_filtering: |-
await client.index('meteorites').search('', filter: 'mass < 200');
faceted_search_update_settings_1: |-
filtering_update_settings_1: |-
await client.index('movies').updateFilterableAttributes([
'director',
'genres',
Expand Down

0 comments on commit b9d8e86

Please sign in to comment.