# Stacked Index Templates

**URL:** https://discuss.elastic.co/t/stacked-index-templates/46844
**Category:** Elasticsearch
**Created:** [April 8, 2016, 7:50pm UTC](https://discuss.elastic.co/t/stacked-index-templates/46844 "2016-04-08T19:50:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ave19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ave19/32/11631_2.png) [@ave19](https://discuss.elastic.co/u/ave19)
#### Post date: [April 8, 2016, 7:50pm UTC](https://discuss.elastic.co/t/stacked-index-templates/46844/1 "2016-04-08T19:50:10Z")

</div>

Is it possible to stack index templates so that the index names match increasingly specific names, and apply all settings?

Or, should I just ask, "What's the best way to effectively do something like this:"

index template for "alpha-_" has settings and mappings in it.  
index template for "alpha-beta-_" has some more specific mappings that apply only to "beta" things.

An index that is created with the name "alpha-beta-2016-04-08" gets all the mappings from the "alpha-_" template, then all the settings from the "alpha-beta-_" template. (it's ok if beta overwrites alpha)

Thanks!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 9, 2016, 7:06am UTC](https://discuss.elastic.co/t/stacked-index-templates/46844/2 "2016-04-09T07:06:41Z")

</div>

Yes, see [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html#multiple-templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html#multiple-templates)

---

<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, 11:01pm UTC](https://discuss.elastic.co/t/stacked-index-templates/46844/3 "2017-07-05T23:01:01Z")

</div>


