# Does setting "dynamic : false" on an index effect "\_all" field?

**URL:** <https://discuss.elastic.co/t/does-setting-dynamic-false-on-an-index-effect--all-field/77075>\
**Category:** Elasticsearch\
**Created:** [March 2, 2017, 1:56am UTC](https://discuss.elastic.co/t/does-setting-dynamic-false-on-an-index-effect--all-field/77075 "2017-03-02T01:56:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![htandra](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@htandra](https://discuss.elastic.co/u/htandra)\
**Post date:** [March 2, 2017, 1:56am UTC](https://discuss.elastic.co/t/does-setting-dynamic-false-on-an-index-effect--all-field/77075/1 "2017-03-02T01:56:55Z")

</div>

Hi all,

I set "dynamic : false" on my index. Will this effect what is indexed under "\_all" field.  
Does it concatenate all values or only those that my static mapping specifies ?  
I am new to elasticsearch. Any will be very helpful. Thanks.

-Harika.

---

<div class="post-metadata">

**Author:** ![wenpos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wenpos/32/15326_2.png) [@wenpos](https://discuss.elastic.co/u/wenpos)\
**Post date:** [March 3, 2017, 8:28am UTC](https://discuss.elastic.co/t/does-setting-dynamic-false-on-an-index-effect--all-field/77075/2 "2017-03-03T08:28:34Z")

</div>

It depends on your usage scenario:

1. "dynamic": false, means the new fields which are not defined in the mapping will be ignored, "\_all" will combine the terms of all the fields together to a new filed "\_all" which the high level query (like query\_string or match query) will based on.
2. if you want the additional fields to be saved and queried in "\_all", you will not make "dynamic" false, otherwise you could do this, make the "dynamic" false will not effect the original.

---

<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:** [March 31, 2017, 8:28am UTC](https://discuss.elastic.co/t/does-setting-dynamic-false-on-an-index-effect--all-field/77075/3 "2017-03-31T08:28:35Z")

</div>

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