# Dynamic Template Application Time?

**URL:** <https://discuss.elastic.co/t/dynamic-template-application-time/114183>\
**Category:** Elasticsearch\
**Created:** [January 4, 2018, 10:42pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183 "2018-01-04T22:42:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexkeyes](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@alexkeyes](https://discuss.elastic.co/u/alexkeyes)\
**Post date:** [January 4, 2018, 10:42pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183/1 "2018-01-04T22:42:28Z")

</div>

Hi I am wondering when Dynamic templates get applied to an index? If I am reindexing can I update the dynamic template? I've already created indices and templates. I've updated the dynamic template for an index and reindexed but I haven't seen a change in the updated indices.

---

<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:** [January 4, 2018, 10:49pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183/2 "2018-01-04T22:49:25Z")

</div>

It gets applied when an index, that matches the pattern, is created.

If you already have an index and update the template, it won't be applied to the existing index/indices.

---

<div class="post-metadata">

**Author:** ![alexkeyes](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@alexkeyes](https://discuss.elastic.co/u/alexkeyes)\
**Post date:** [January 5, 2018, 6:52pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183/3 "2018-01-05T18:52:21Z")

</div>

Okay, so if I reindex it will be applied when I reindex right? Since templates are applied at index creation time?

---

<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:** [January 5, 2018, 8:04pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183/4 "2018-01-05T20:04:16Z")

</div>

Yes, if the reindex creates the index that will match the template.

---

<div class="post-metadata">

**Author:** ![alexkeyes](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@alexkeyes](https://discuss.elastic.co/u/alexkeyes)\
**Post date:** [January 5, 2018, 8:09pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183/5 "2018-01-05T20:09:51Z")

</div>

Great thanks so much for answering my question! much appreciated!

---

<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:** [February 2, 2018, 8:10pm UTC](https://discuss.elastic.co/t/dynamic-template-application-time/114183/6 "2018-02-02T20:10:12Z")

</div>

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