working on ES 5.x version, and need to update multiple fields update using script.Also share , have any better solution .
POST ../100/_update
{
"script" : {
"inline": "ctx._source.student.hobbies.add(params.tag)",
"lang": "painless",
"params" : {
"tag" : "cricket"
}
}
}
also the same student i need to update phone no. now i am calling 2 api for update hobbies and phone number. looking for better solution to update both in single query