# Routing allocation

**URL:** <https://discuss.elastic.co/t/routing-allocation/58039>\
**Category:** Elasticsearch\
**Created:** [August 15, 2016, 4:32pm UTC](https://discuss.elastic.co/t/routing-allocation/58039 "2016-08-15T16:32:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [August 15, 2016, 4:32pm UTC](https://discuss.elastic.co/t/routing-allocation/58039/1 "2016-08-15T16:32:19Z")

</div>

I have a template when indices get created to route to box\_type: hot. Then I run curator and say allocate to box\_type: cold. If I check the index settings after running curator I see the following:

```
"index": {
        "routing": {
          "allocation": {
            "require": {
              "box_type": "cold"
            }
          }
        },
        "refresh_interval": "5s",
        "number_of_shards": "5",
        "index": {
          "routing": {
            "allocation": {
              "require": {
                "box_type": "hot"
              }
            }
          }
        },
```

Why does the setting tell be I have both box\_type cold, then further down box\_type hot. Is this correct? Will elasticsearch just see the change in allocation and use only the first one ? Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/routing-allocation/58039/2 "2017-07-05T22:27:44Z")

</div>


