-
Notifications
You must be signed in to change notification settings - Fork 99
Code samples changes related to Meilisearch release (v0.28.0) #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code samples changes related to Meilisearch release (v0.28.0) #298
Conversation
704f22e
to
f46f78d
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to change get_document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of questions.
In any case is 100% 🎉 LGTM!
.code-samples.meilisearch.yaml
Outdated
create_an_index_1: |- | ||
client.create_index("movies", Some("id")).await.unwrap(); | ||
update_an_index_1: |- | ||
client.index("movies").update("movie_review_id").await.unwrap(); | ||
delete_an_index_1: |- | ||
client.index("movies").delete().await.unwrap(); | ||
get_one_document_1: |- | ||
let movie: Movie = client.index("movies").get_document(String::from("25684")).await.unwrap(); | ||
let movie: Movie = client.index("movies").get_document(String::from("25684"), ["id", "title", "poster", "release_date"].to_vec()).await.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why .to_vec()
is required here? But not in .with_status(["succeeded", "failed"])
?
get_all_keys_1: |- | ||
let keys = client.get_keys().await.unwrap(); | ||
let mut query = KeysQuery::new().with_limit(3).execute(&client).await.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the examples are multiline and some are not, I think it could be nice to follow a standard :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I bring consistency now I have to do it on every sample even the ones that are not linked to this PR.
Maybe an issue that request that change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect for me! You can open the issue :)
Co-authored-by: Bruno Casali <[email protected]>
…arch/meilisearch-rust into meili-bot/code-samples-v0-28
This PR is auto-generated.
Update the code-samples.meilisearch.yml according to the integration-guides issue for more information and the complete description about what should be done here check that issue.