Skip to content

Commit

Permalink
Merge #525
Browse files Browse the repository at this point in the history
525: Fix code samples for multi search r=curquiza a=curquiza

Following [this discussion](https://meilisearch.slack.com/archives/C0557UPQHQA/p1695812824963079) (internal)

Co-authored-by: curquiza <[email protected]>
  • Loading branch information
meili-bors[bot] and curquiza authored Sep 27, 2023
2 parents 085ceb0 + 6fc4b9e commit 1bdfcb3
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,8 @@ tenant_token_guide_search_sdk_1: |-
.unwrap();
multi_search_1: |-
let movie = client.index("movie");
let movie_ratings = client.index("movie_ratings");
let search_query_1 = SearchQuery::new(&movie)
.with_query("pooh")
.with_limit(5)
Expand All @@ -1553,26 +1555,18 @@ multi_search_1: |-
.with_query("nemo")
.with_limit(5)
.build();
let search_query_3 = SearchQuery::new(&movie_ratings)
.with_query("us")
.build();
let movie_response = client
let response = client
.multi_search()
.with_search_query(search_query_1)
.with_search_query(search_query_2)
.execute::<Movie>()
.with_search_query(search_query_3)
.execute::<Document>()
.await
.unwrap();
let movie_ratings = client.index("movie_ratings");
let search_query_3 = SearchQuery::new(&movie_ratings)
.with_query("us")
.build();
let movie_ratings_response = client
.multi_search()
.with_search_query(search_query_3)
.execute::<MovieRatings>()
.await
.unwrap();
get_experimental_features_1: |-
let client = Client::new("http://localhost:7700", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
Expand Down

0 comments on commit 1bdfcb3

Please sign in to comment.