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

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

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

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