# Elastic search - reset enabled flag of object index type

**URL:** <https://discuss.elastic.co/t/elastic-search-reset-enabled-flag-of-object-index-type/22842>\
**Category:** Elasticsearch\
**Created:** [March 24, 2015, 5:25am UTC](https://discuss.elastic.co/t/elastic-search-reset-enabled-flag-of-object-index-type/22842 "2015-03-24T05:25:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivaramakrishnan\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivaramakrishnan_n/32/811_2.png) [@Sivaramakrishnan\_N](https://discuss.elastic.co/u/Sivaramakrishnan_N)\
**Post date:** [March 24, 2015, 5:25am UTC](https://discuss.elastic.co/t/elastic-search-reset-enabled-flag-of-object-index-type/22842/1 "2015-03-24T05:25:38Z")

</div>

I have a field of "Object" index type. It was initially created with index  
mapping with "enabled" : false. For example:

```
"root_obj": {
"properties": {
  "test_obj": {
  "type": "object",       
  "enabled": false          
  }
}

```

Later now, I have the need to reset the enabled flag to true and index some  
inner objects. For example: I used the PUT mapping api to update the  
mapping to something like below:

"root\_obj": {  
"properties": {  
"test\_obj": {  
"type": "object",  
"enabled": true,  
"dynamic": false,  
"properties": {  
"geo\_shape\_obj" : {  
"type": "geo\_shape",  
"tree": "quadtree",  
"precision": "10m"  
}  
}  
}  
}

However, ES does not seems to be resetting the enabled flag. When I check  
the mapping using get mapping api, the "test\_obj" still has enabled flag  
set to false. Also search api is not retrieving any results with the new  
indexed inner object "geo\_shape\_obj".

Has anyone else experienced this ? Can a field's enabled flag be reset to  
true ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/65b5e64d-d004-4c34-8c45-3af929d57a73%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/65b5e64d-d004-4c34-8c45-3af929d57a73%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:24am UTC](https://discuss.elastic.co/t/elastic-search-reset-enabled-flag-of-object-index-type/22842/2 "2017-07-06T00:24:36Z")

</div>

Closed on July 6, 2017, 12:24am UTC


