How search in datastream by timestamp works?

Can U explain how works search in datastream by timestamp field?
For example:
I have a datastream with two indexes. Each Index have 10 primary shards.
What happens when I search by timestamp? Elastic will be search timespan in each document in shard?
Help me to understand please.

Welcome to our community! :smiley:

Elasticsearch uses Field capabilities API | Elasticsearch Guide [8.2] | Elastic to figure out what indices and shards can be skipped, and which hold relevant data.

1 Like

Thank you so much!!!!

Elastic retrieves all indexes when call field capabilities? Or elastic store field info to some private table?
I just try to understand how query to data stream works.

I don't think there's any direct caching by Elasticsearch on that information.

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