# Apply order: Template vs mapping

**URL:** <https://discuss.elastic.co/t/apply-order-template-vs-mapping/196414>\
**Category:** Elasticsearch\
**Created:** [August 22, 2019, 10:01pm UTC](https://discuss.elastic.co/t/apply-order-template-vs-mapping/196414 "2019-08-22T22:01:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [August 22, 2019, 10:01pm UTC](https://discuss.elastic.co/t/apply-order-template-vs-mapping/196414/1 "2019-08-22T22:01:31Z")

</div>

Does anybody know the order in which a new index's mapping is created?  
You can create a new Index with mapping. If there's a template applicable for the index, what's the order?  
The official doc only describe the order within templates.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 23, 2019, 7:16am UTC](https://discuss.elastic.co/t/apply-order-template-vs-mapping/196414/2 "2019-08-23T07:16:42Z")

</div>

the user supplied mapping of the index will overwrite mappings from the index 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:** [September 20, 2019, 7:22am UTC](https://discuss.elastic.co/t/apply-order-template-vs-mapping/196414/3 "2019-09-20T07:22:24Z")

</div>

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