Rewrite upper bound of time range of shard request #79610
Labels
>enhancement
:Search Foundations/Search
Catch all for Search Foundations
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Currently, Elasticsearch rewrites a range query on
@timestamp
to aMatchAll
query if all the data on a shard falls within the bounds of the range query. This is great for increasing the amount of shard request cache hits.To increase the cache hit ratio, ES could consider rewriting the upper bound of a query to its max value for
@timestamp
. In a sliding window scenario, where the consumers of the_search
API round down the lower end of a time range, e.g. for a now-7d time range they will round down to the hour, the cache hit ratio on the index at the start of the time range will be increased.The text was updated successfully, but these errors were encountered: