Skip to content

Could _search sort on @timestamp by default when the index pattern only matches data streams? #71186

@jpountz

Description

@jpountz

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?

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions