Hi All,
I have to update one field based on match of multiple values of a field.I want to update field amt as 9000 based on query of multiple values of RRN but multiple values are not supported and giving error.
Is there any alternate solution to this.Thanks in advance
"type": "illegal_state_exception",
"reason": "Can't get text on a START_ARRAY at 1:26"
POST testimp/_update_by_query
{
"script": {
"source": "ctx._source.amt = 9000",
"lang": "painless"
},
"query": {
"match": {
"RRN" : [3201,1209]
}
}
}