Closed
Description
Steps to reproduce
- Create a new index with
enabled=false
curl -XPUT -H 'Content-Type:application/json' 'localhost:9200/twitter' -d '
{
"mappings": {
"doc": {
"properties": {
"session": {
"type": "object",
"enabled": false
}
}
}
}
}'
- Update mapping with
enabled=true
and received an acknowledgment
curl -XPOST -H 'Content-Type:application/json' 'localhost:9200/twitter/_mapping/doc' -d '
{
"properties": {
"session": {
"type": "object",
"enabled": true
}
}
}'
- Query the mapping
curl 'localhost:9200/twitter/_mapping/doc'
{"twitter":{"mappings":{"doc":{"properties":{"session":{"type":"object","enabled":false}}}}}}
I am not sure if we support updating enabled
attribute but we should not acknowledge if the update does not take effect.