Does in refresh interval data of the entire shards get changed

Does in refresh interval data of the entire shards get changed or only the data which has been changed.
Suppose
refresh interval is 1s.
And in if index.requests.cache.enable = true then filter query results will be cached .
So will refresh interval will flush all the data from cache or only the data which has been changed

The refresh interval does not relate to the request cache.

From the docs;

A refresh makes all operations performed on an index since the last refresh available for search.

An operation means an index (write), delete or update.

Please have a look at this. In Cache Invalidation it is mentioned the caches clear's as soon as the shard gets refreshed
https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-request-cache.html

You're right sorry, I forgot that also happened.

So every time a refresh happens, it invalidates that cache.

So it invalidate's the entire cache or it invalidate's only the documents which are updated

The entire cache.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.