-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Sort ids query by order of ids passed in #42785
Comments
Pinging @elastic/es-search |
That's not how search works. Ids queries are just one type of query that you can mix with other ( |
Limitations of multi-get api is described in the linked issue #3458 (comment). |
Yes, along with the reasons why we don't want to support this and the possible workarounds. |
Looks like this is not something we're going to work on, so I'm closing this. |
@cbuescher - I think we are effectively working on this with the pinned query proposal |
There's no good reason for ids query to return documents in an order other than the order of the ids that were provided. The ids are provided in an array, which is ordered, so the values should be returned as such. What's the benefit in surprising users in a negative way doing something order than what would be expected by default?
#3458 was closed years ago abruptly with no explanation, despite it continuing to be requested by many in the years after that. I'd like to open another issue so that it can be actually considered reasonably this time.
If you don't want to break the whatever order they're provided in, then an option that can be passed to the query activating this mode would be good. Although I don't see why it shouldn't be the default.
The text was updated successfully, but these errors were encountered: