-
Notifications
You must be signed in to change notification settings - Fork 105
Code samples changes related to Meilisearch release (v0.28.0) #347
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) #347
Conversation
.code-samples.meilisearch.yaml
Outdated
| $client->index('movies')->delete(); | ||
| get_one_document_1: |- | ||
| $client->index('movies')->getDocument(25684); | ||
| $client->index('movies')->getDocument(25684, (new IndexesQuery())->setFields(['id', 'title', 'poster', 'release_date'])); |
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'm correct it's impossible to use setFields currently with getDocument even if it's possible with getDocuments
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.
Actually, it is possible! But not using an object like the other lists
I've opted to just use the fields in this case because I hardly believe the getDocument will increase their public API in the future.
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.
Ok! thanks!
I've updated the code sample, let me know if it's correct then 😄
brunoocasali
left a comment
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.
🎉
Co-authored-by: Bruno Casali <[email protected]>
* Update .code-samples.meilisearch.yaml * Update code samples * Fix list_indexes code sample * Fix get_one_document_1 code sample * Update .code-samples.meilisearch.yaml Author: Clémentine Urquizar <[email protected]> Co-authored-by: Bruno Casali <[email protected]>
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.