Hey there,
Is there a way to change the Metadata _tier value after that an ILM is executed?
If an index starts with _tier set to data_hot and then it is moved to a warm node, can I change the Metadata automatically?
In this way I could query only data_hot indices
You can indeed change the _tier when it is moved to the warm node. You have a couple of options:
- Let ILM automatically change the
_tier_preferencetodata_warm,data_hotwhen it migrates to thewarmphase in ILM. - Use the
allocateaction in the warm phase to change the_tier_preferenceto your desired tier when it migrates to the warm phase in ILM.
Hope that helps!