# Searchable snapshot action - in cold phase restores the index to random data tier instead of only cold data tier

**URL:** <https://discuss.elastic.co/t/searchable-snapshot-action-in-cold-phase-restores-the-index-to-random-data-tier-instead-of-only-cold-data-tier/282154>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-searchable-snapshots\
**Created:** [August 22, 2021, 6:38am UTC](https://discuss.elastic.co/t/searchable-snapshot-action-in-cold-phase-restores-the-index-to-random-data-tier-instead-of-only-cold-data-tier/282154 "2021-08-22T06:38:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [August 22, 2021, 3:12pm UTC](https://discuss.elastic.co/t/searchable-snapshot-action-in-cold-phase-restores-the-index-to-random-data-tier-instead-of-only-cold-data-tier/282154/2 "2021-08-22T15:12:28Z")

</div>

> [@Kannappan\_Somu](#):
>
> ```auto
> "routing" : {
> "allocation" : {
> "require" : {
> "data" : "hot"
> }
> }
> }
> 
> ```

This suggests you're not using [data tiers](https://www.elastic.co/guide/en/elasticsearch/reference/current/data-tiers.html), you're just setting node attributes. You should define your hot tier with `node.roles: data_hot`, similarly for warm and cold, then the `_tier_preference` filter will do the right thing.

---

_[View the full topic](https://discuss.elastic.co/t/searchable-snapshot-action-in-cold-phase-restores-the-index-to-random-data-tier-instead-of-only-cold-data-tier/282154)._
