POST to _update, and CompileException

Hello elasticsearch list!

I try to update a document using the _update endpoint, but I can't make it

The same code works fine when I run it in plain groovy.

See and note that the code in the elagrov file is
the same as in the script field in the POST, and yet does not create a
compile error...

How can I make this work? :open_mouth:

best regards,

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit