# Strict dynamic mapping and dynamic template matches

**URL:** https://discuss.elastic.co/t/strict-dynamic-mapping-and-dynamic-template-matches/1311
**Category:** Elasticsearch
**Created:** [May 26, 2015, 1:00pm UTC](https://discuss.elastic.co/t/strict-dynamic-mapping-and-dynamic-template-matches/1311 "2015-05-26T13:00:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vasco](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@Vasco](https://discuss.elastic.co/u/Vasco)
#### Post date: [May 26, 2015, 1:00pm UTC](https://discuss.elastic.co/t/strict-dynamic-mapping-and-dynamic-template-matches/1311/1 "2015-05-26T13:00:15Z")

</div>

I have a dynamic template that matches on part of the field names. If a new field is encountered that doesn't match the template I want it to be ignored. However, if I set dynamic to false or strict it seems to disable the templates as well.

So I guess this comes down to if there is a way to have a dynamic=strict or dynamic=false policy applied to your index, but to allow mappings that match a dynamic template definition?

---

<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: [May 27, 2015, 12:27am UTC](https://discuss.elastic.co/t/strict-dynamic-mapping-and-dynamic-template-matches/1311/2 "2015-05-27T00:27:53Z")

</div>

Nope, it's either all or nothing I'm afraid.

---

<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 6, 2017, 12:11am UTC](https://discuss.elastic.co/t/strict-dynamic-mapping-and-dynamic-template-matches/1311/3 "2017-07-06T00:11:47Z")

</div>


