# When \_index\_template is set \_template is ignored

**URL:** <https://discuss.elastic.co/t/when-index-template-is-set-template-is-ignored/252036>\
**Category:** Elasticsearch\
**Created:** [October 14, 2020, 11:45am UTC](https://discuss.elastic.co/t/when-index-template-is-set-template-is-ignored/252036 "2020-10-14T11:45:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)\
**Post date:** [October 14, 2020, 11:45am UTC](https://discuss.elastic.co/t/when-index-template-is-set-template-is-ignored/252036/1 "2020-10-14T11:45:29Z")

</div>

I created default \_index\_template to add attribute to settings for hot nodes  
since I set this parameter all \_templates are ignored.  
There is some incompatibility between \_index\_template and \_template

do I have to migrate all \_templates to \_index\_template?  
or can I stay with \_template?

```auto
PUT _index_template/default
{
  "priority": 0,
  "template": {
    "settings": {
      "index": {
        "routing": {
          "allocation": {
            "include": {
              "data": "hot"
            }
          }
        }
      }
    }
  },
  "index_patterns": [
    "*"
  ],
  "composed_of": []
}

```

---

<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:** [November 11, 2020, 11:45am UTC](https://discuss.elastic.co/t/when-index-template-is-set-template-is-ignored/252036/2 "2020-11-11T11:45:35Z")

</div>

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