# Possible to restrict dynamic fields to dynamic\_template defined ones?

**URL:** https://discuss.elastic.co/t/possible-to-restrict-dynamic-fields-to-dynamic-template-defined-ones/145736
**Category:** Elasticsearch
**Created:** [August 23, 2018, 1:18pm UTC](https://discuss.elastic.co/t/possible-to-restrict-dynamic-fields-to-dynamic-template-defined-ones/145736 "2018-08-23T13:18:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dunaeth](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@dunaeth](https://discuss.elastic.co/u/dunaeth)
#### Post date: [August 23, 2018, 1:18pm UTC](https://discuss.elastic.co/t/possible-to-restrict-dynamic-fields-to-dynamic-template-defined-ones/145736/1 "2018-08-23T13:18:13Z")

</div>

Hi, is it possible to restrict dynamic fields mapping to those matching dynamic\_templates ?

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [August 23, 2018, 3:52pm UTC](https://discuss.elastic.co/t/possible-to-restrict-dynamic-fields-to-dynamic-template-defined-ones/145736/2 "2018-08-23T15:52:25Z")

</div>

This isn't supported but there is an ongoing discussion about this feature: [https://github.com/elastic/elasticsearch/issues/27170](https://github.com/elastic/elasticsearch/issues/27170)

---

<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, 2018, 3:52pm UTC](https://discuss.elastic.co/t/possible-to-restrict-dynamic-fields-to-dynamic-template-defined-ones/145736/3 "2018-09-20T15:52:28Z")

</div>

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