I am using Elasticsearch 5.0.1 want to add value to paritial of document, I use scripting update
{
"script" : {
"inline": "ctx._source.tags.add(params.tag)",
"inline": "ctx._source.type.add(params.typee)",
"lang": "painless",
"params" : {
"tag" : "blue",
"type" : "location"
}
}
}
but it just add type value not tags value, my mean is that it just add value to one field not both
any one could help me