# Update\_all\_type not working

**URL:** https://discuss.elastic.co/t/update-all-type-not-working/61425
**Category:** Elasticsearch
**Created:** [September 23, 2016, 10:16pm UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425 "2016-09-23T22:16:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![thinkabout](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@thinkabout](https://discuss.elastic.co/u/thinkabout)
#### Post date: [September 23, 2016, 10:16pm UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/1 "2016-09-23T22:16:19Z")

</div>

Hi,

I am using ElasticSearch and Kibana 5.0.0-alpha5.

I have a "logevent" type which contains a "level" field. I want to update the field's "fielddata" to true. I tried the following statement

PUT \*/\_mapping/logevent  
{  
"logevent": {  
"properties": {  
"level": {  
"type": "string",  
"fielddata": true  
}  
}  
}  
}

However I got the following error

{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "Mapper for [level] conflicts with existing mapping in other types:\n[mapper [level] has different [norms] values, cannot change from disable to enabled]"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "Mapper for [level] conflicts with existing mapping in other types:\n[mapper [level] has different [norms] values, cannot change from disable to enabled]"  
},  
"status": 400  
}

So I tried using update\_all\_type (see below) as discussed here [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html) but I got the exact same error. Does anyone know what I am doing wrong?

PUT \*/\_mapping/logevent?update\_all\_type  
{  
"properties": {  
"level": {  
"type": "string",  
"fielddata": true  
}  
}  
}

---

<div class="post-metadata">

### Author: ![thinkabout](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@thinkabout](https://discuss.elastic.co/u/thinkabout)
#### Post date: [September 24, 2016, 10:16am UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/2 "2016-09-24T10:16:46Z")

</div>

If anyone has any thoughts it would be greatly appreciated

---

<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 25, 2016, 6:16am UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/3 "2016-09-25T06:16:20Z")

</div>

You will need to reindex to change this one.

---

<div class="post-metadata">

### Author: ![thinkabout](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@thinkabout](https://discuss.elastic.co/u/thinkabout)
#### Post date: [September 25, 2016, 10:32pm UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/4 "2016-09-25T22:32:05Z")

</div>

Hi Mark thanks for the reply.

I'm new to ES so would you mind providing a bit more context?

Why does update\_all\_type not work?

If I reindex am I still required to run update\_all\_type?

I would assume this would be a problem for anyone new to ES and Kibana and running Elastic Stack 5.0.0-beta1 so I'm surprised there isn't better help in the getting started documentation for this issue.

---

<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 27, 2016, 10:42am UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/5 "2016-09-27T10:42:47Z")

</div>

What does the existing mapping look like? Did you disable norms or fielddata?

---

<div class="post-metadata">

### Author: ![thinkabout](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@thinkabout](https://discuss.elastic.co/u/thinkabout)
#### Post date: [September 27, 2016, 10:29pm UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/6 "2016-09-27T22:29:45Z")

</div>

Hi Mark.

As in my original post I'm trying to set fielddata to true. From what is discussed in the following post it seems like it should have solved my issue but it fails

[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html)

I'm just new to ElasticSearch so if there is some other piece of information you need please just let me know.

Thanks heaps for your assistance.

---

<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 29, 2016, 12:23am UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/7 "2016-09-29T00:23:26Z")

</div>

The OP doesn't contain what it looks like right now, before any mapping updates, only what you are trying to do 🙂

---

<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: [July 5, 2017, 10:16pm UTC](https://discuss.elastic.co/t/update-all-type-not-working/61425/8 "2017-07-05T22:16:21Z")

</div>


