I've the following document indexed in ElasticSearch
{
"myObj":{
"name": "test",
"elements": {
"val": 1
}
}
}
I want to do a partial update to empty the nested attribute elements so I should be elements": {}; So I tried to send a partial update:
POST /entities/_doc/1/_update
{
"doc" : {
"myObj":{
"elements": {}
}
}
}
But this does nothing and the document keeps untouched. How can I empty a nested object in a document using partial updates ?
myObj.elements.valand I want it to bemyObject.elements == empty