Painless scripting language cant add value to many fields it just add to one field

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

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