Index lifecyle management

Consider i have index rollver enable with Ilm policy for every 1gb of data .
index will have timestamp. current write index will have post_write alias .

now i want to query current index and previous index .How can this be handled.

If you just want to query specific indices you need to explicitly spacify them. If you are using a range clause for the timestamp that means only data in the last 2 indices will get matched I would recommend querying all indices in the pattern. Executing a query against an index that does not have any data fitting the specified time range is very quick and adds limited overhead.

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