Hello,
I am trying to use the painless script to edit/remove element from a list in a document. Everything works correctly but I am not able to know if the element was actually edited or removed.
i.e. I need to know in case the element was not present already while deleting.
Is there a way to throw an error or return a value? I am using a Java Client
Thank you,
Francesco