POST to _update, and CompileException

Hello elasticsearch list!

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

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

See http://pastie.org/9561774 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,
Martin

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6998492a-05d5-40a7-b3ac-49f8543691b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.