-
Notifications
You must be signed in to change notification settings - Fork 257
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
v1.14: Get documents by ids
#3208
base: v1.14
Are you sure you want to change the base?
Conversation
How to see the preview of this PR?Go to this URL: https://website-git-deploy-preview-mei-16-meili.vercel.app/docs/branch:3190-v1.14-get-documents-by-id Credentials to access the page are in the company's password manager as "Docs deploy preview". |
Good 👍
|
I would say it's easy enough to understand, yeah. I'm not sure what other behaviour someone could expect from using the two together.
I thought about that, but it also felt a bit self-evident when compared to the behaviour of other parameters across the application. For example, if you e.g. set a filter for So I'm inclined not to mention those directly unless we have any direct feedback from users struggling with either/both behaviours. |
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.
Thank you for the answer.
For the record, we almost designed the API to return an error when a docid with no matching document was in the list of ids
.
Another behavior we considered for passing both ids
and filter
was to OR
the two filters (currently it is an AND
), that is, Meilisearch would have returned all the documents with the requested ids plus all documents matching the filter (in the implementation, Meilisearch returns the documents with requested ids that also match the filter)
That's very interesting. I think returning an error for fetching non-existent ids is reasonable (though I'd still feel surprised because in most scenarios I can think of we usually don't do that), but returning all documents matching I personally think the final result is more intuitive than the other avenues you looked into, but I'll discuss it with the product team and see if we can find a way to monitor the situation here in case I'm wrong. |
Closes #3190