-
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
Could _search sort on @timestamp
by default when the index pattern only matches data streams?
#71186
Comments
Pinging @elastic/es-search (Team:Search) |
We discussed offline and agreed that this is something we want to implement. |
Is the plan to always add sort on @timestamp?
Or is this only for cases when no query and sort provided? |
These are good questions, I had not thought about that.
My initial take on this is that I'd rather keep them so that the response is the same whether explicitly sorting by
Since we don't automatically use I think that there is another question that is important, which is should we only do this on data streams, or on any index that deals with time-based data? For instance, some users are still using regular time-based indices if they need updates, and these indices would also benefit from a different default sort. But I don't know how we can identify time-based indices from non-time-based indices. |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
Not only is sorting by descending
@timestamp
what users usually want when querying data streams, but it's also faster than sorting by_score
when querying large amounts of data thanks to optimizations to skip shards that only contain old data. Could we make it the default?The text was updated successfully, but these errors were encountered: