# Mapping: can i update the mapping of object from "enabled:false" to "enabled:true" or do i have to reindex

**URL:** <https://discuss.elastic.co/t/mapping-can-i-update-the-mapping-of-object-from-enabled-false-to-enabled-true-or-do-i-have-to-reindex/80176>\
**Category:** Elasticsearch\
**Created:** [March 27, 2017, 6:04pm UTC](https://discuss.elastic.co/t/mapping-can-i-update-the-mapping-of-object-from-enabled-false-to-enabled-true-or-do-i-have-to-reindex/80176 "2017-03-27T18:04:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [March 27, 2017, 6:04pm UTC](https://discuss.elastic.co/t/mapping-can-i-update-the-mapping-of-object-from-enabled-false-to-enabled-true-or-do-i-have-to-reindex/80176/1 "2017-03-27T18:04:30Z")

</div>

Can i update the mapping of object from "enabled:false" to "enabled:true" or do i have to reindex?

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [March 27, 2017, 11:42pm UTC](https://discuss.elastic.co/t/mapping-can-i-update-the-mapping-of-object-from-enabled-false-to-enabled-true-or-do-i-have-to-reindex/80176/2 "2017-03-27T23:42:23Z")

</div>

You can send a mapping update API call with this body, however, it does not change the actual mapping; you'll need to reindex in order to do that.

Tested this with:

```
PUT /i/d/1
{
  "obj": {
"foo": "bar"
  }
}

GET /i/d/_mapping

PUT /i/_mapping/d
{
  "properties": {
"obj": {
  "type": "object",
  "enabled": false
}
  }
}

GET /i/d/_mapping
```

---

<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:** [April 24, 2017, 11:42pm UTC](https://discuss.elastic.co/t/mapping-can-i-update-the-mapping-of-object-from-enabled-false-to-enabled-true-or-do-i-have-to-reindex/80176/3 "2017-04-24T23:42:34Z")

</div>

Closed on April 24, 2017, 11:42pm UTC

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