# How to disable \_all field in production mode?

**URL:** <https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945>\
**Category:** Elasticsearch\
**Created:** [December 9, 2017, 10:20pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945 "2017-12-09T22:20:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![majid\_zarrin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majid_zarrin/32/29103_2.png) [@majid\_zarrin](https://discuss.elastic.co/u/majid_zarrin)\
**Post date:** [December 9, 2017, 10:20pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945/1 "2017-12-09T22:20:31Z")

</div>

Hello  
I had Elasticsearh v5.6.2 and I do upgrade to v6.0.1.  
I expected Elasticsearch removes \_all field because I didn't explicitly declare it as true on the mapping but it didn't.  
Is there any way that I disable \_all field in production mode?  
thank you.

---

<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:** [December 9, 2017, 11:05pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945/2 "2017-12-09T23:05:29Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/mapping-all-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/mapping-all-field.html)

---

<div class="post-metadata">

**Author:** ![majid\_zarrin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majid_zarrin/32/29103_2.png) [@majid\_zarrin](https://discuss.elastic.co/u/majid_zarrin)\
**Post date:** [December 9, 2017, 11:16pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945/3 "2017-12-09T23:16:36Z")

</div>

Thank you @warkolm,  
I tried that before but I got an error on disabling \_all .

> #1 try  
> PUT /users/\_mapping/messages  
> {  
> "\_all": {  
> "enabled": false  
> }  
> }  
> #1 response  
> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "mapper [\_all] enabled is true now encountering false"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "mapper [\_all] enabled is true now encountering false"  
> },  
> "status": 400  
> }  
> #2 try  
> PUT /users  
> {  
> "mapping": {  
> "messages": {  
> "\_all": {  
> "enabled": false  
> }  
> }  
> }  
> }  
> #2 response  
> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "unknown setting [index.mapping.messages.\_all.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "unknown setting [index.mapping.messages.\_all.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"  
> },  
> "status": 400  
> }

---

<div class="post-metadata">

**Author:** ![lfernandes](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@lfernandes](https://discuss.elastic.co/u/lfernandes)\
**Post date:** [December 21, 2017, 1:40pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945/4 "2017-12-21T13:40:08Z")

</div>

I have the same issue. I'm trying to disable `_all` to update to ES 6.1 but i get this error:

```
{"type":"illegal_argument_exception","reason":"mapper [_all] enabled is true now encountering false"}
```

---

<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:** [December 21, 2017, 2:51pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945/5 "2017-12-21T14:51:06Z")

</div>

You don't need to enable or disable it anymore. It's not a field anymore but a feature.

---

<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:** [January 18, 2018, 2:51pm UTC](https://discuss.elastic.co/t/how-to-disable-all-field-in-production-mode/110945/6 "2018-01-18T14:51:06Z")

</div>

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