Error about schema casting when updating documents attributes different than the error ones

Hello, I got some issue with elastic.
I have a request which updates docs on elastics. this looks like:

POST /index/_update_by_query
              "load": "sync"
            source: `ctx._source.attributes.amount = params.amount`,
            params: { "amount": 59 },

Even though the script only updates the amount value inside the attributes object, Im getting the next error:
"field [client] of type [java.util.HashMap] cannot be cast to [java.lang.String]",

May you have some thoughts in what could cause this?

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