Hello, I'm trying to update a nested field of my document through the update_by_query API, but I"m getting a casting error: [class_cast_exception] java.lang.String cannot be cast to java.util.Map
This is the body of my request;
{
"query":{
"term":{
"acl_policy.group_id":"11550"
}
},
"script":"ctx._source.acl_policy = newAclPolicy",
"params":{
"newAclPolicy":{
"group_id":"11550",
"canned_group":"company",
"name_normalized":"",
"members":[
{
"user_id":"0",
"company_id":"4390",
"membership":"allow"
}
]
}
}
}
Is there any fix for this?