# What difference does it make to add the "\_all": { "enabled": false } to the \_default\_ section rather in the specifiec index\_name section?

**URL:** <https://discuss.elastic.co/t/what-difference-does-it-make-to-add-the-all-enabled-false-to-the-default-section-rather-in-the-specifiec-index-name-section/313571>\
**Category:** Elasticsearch\
**Created:** [September 2, 2022, 4:46pm UTC](https://discuss.elastic.co/t/what-difference-does-it-make-to-add-the-all-enabled-false-to-the-default-section-rather-in-the-specifiec-index-name-section/313571 "2022-09-02T16:46:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_W\_A\_T\_7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s_w_a_t_7/32/99866_2.png) [@S\_W\_A\_T\_7](https://discuss.elastic.co/u/S_W_A_T_7)\
**Post date:** [September 2, 2022, 4:46pm UTC](https://discuss.elastic.co/t/what-difference-does-it-make-to-add-the-all-enabled-false-to-the-default-section-rather-in-the-specifiec-index-name-section/313571/1 "2022-09-02T16:46:00Z")

</div>

What difference does it make to add the "\_all": { "enabled": false } to the _default_ section rather in the specifiec index\_name section ?

```auto
 "mappings": {
    "_default_": {
      "_all": {
        "enabled": false
      }
    },
    "index_name": {
      "_all": {
        "enabled": false
      },
      "dynamic_templates": [
        {

```

---

<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:** [September 6, 2022, 3:50am UTC](https://discuss.elastic.co/t/what-difference-does-it-make-to-add-the-all-enabled-false-to-the-default-section-rather-in-the-specifiec-index-name-section/313571/2 "2022-09-06T03:50:30Z")

</div>

Welcome to our community! 😃

What version of Elasticsearch are you running?

---

<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:** [October 4, 2022, 3:51am UTC](https://discuss.elastic.co/t/what-difference-does-it-make-to-add-the-all-enabled-false-to-the-default-section-rather-in-the-specifiec-index-name-section/313571/3 "2022-10-04T03:51:20Z")

</div>

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