# Disable dynamic mapping over all nodes

**URL:** <https://discuss.elastic.co/t/disable-dynamic-mapping-over-all-nodes/288062>\
**Category:** Elasticsearch\
**Created:** [October 30, 2021, 1:37pm UTC](https://discuss.elastic.co/t/disable-dynamic-mapping-over-all-nodes/288062 "2021-10-30T13:37:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstoneir](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lstoneir](https://discuss.elastic.co/u/lstoneir)\
**Post date:** [October 30, 2021, 1:37pm UTC](https://discuss.elastic.co/t/disable-dynamic-mapping-over-all-nodes/288062/1 "2021-10-30T13:37:05Z")

</div>

I want to disable dynamic mappings for all indices over all nodes of cluster.

how can i do this?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 30, 2021, 8:54pm UTC](https://discuss.elastic.co/t/disable-dynamic-mapping-over-all-nodes/288062/2 "2021-10-30T20:54:49Z")

</div>

You can use a strict mapping for each index.

See [dynamic | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html)

If you want to define this anytime a new index is created, you might have to create an index template.  
I'd recommend just applying the index template to your own indices and not the elastic internal indices.

---

<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:** [November 27, 2021, 8:55pm UTC](https://discuss.elastic.co/t/disable-dynamic-mapping-over-all-nodes/288062/3 "2021-11-27T20:55:43Z")

</div>

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