We are using Index Roll Over api to create new index based on size. We are having 1 alias for write and another alias for read. Read alias is obviously pointing to all indices.
For range query, we want to limit search to just indices created in the time range only instead of going through all indices. Does Elasticsearch already filter out right indices based on range when we send range query to the read alias (that has all indices) or we really have to keep track of indices and their created time to pick right indices and add index filter in the range query request?
I am also aware that we can create multiple aliases (like 1day, 1week, 1month...) and manage to assign index to proper alias when create new index however this approach is not flexible and not efficient enough to filter out only indices that were created in a range query.