Hi, I reference
curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{
"script" : "ctx._source.remove("name_of_field")"
}'
Test document inside the type below the message field to delete
curl -XPOST 'localhost:9200/test/type/_update' -d '{
"script" : "ctx._source.remove("message")"
}
"script" : "ctx.type.remove(\"message\")" "script" : "test.type.remove(\"message\")" "script" : "type.remove(\"message\")" "script" : "remove(\"message\")"
But they are not successful, will add the script field .
Thanks.