-
Notifications
You must be signed in to change notification settings - Fork 59
put_script() defaults to mustache #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are two issues here. First, you're using the wrong syntax, use this instead:
And second, a bug in Elasticsearch that it is accepting this malformed request. I have opened elastic/elasticsearch#27612 to get that fixed. |
Thank you very much for your time and advice. Maybe you can update the example in https://metacpan.org/pod/Search::Elasticsearch::Client::6_0::Direct#put_script() as well? |
Ah thanks for pointing that out. I've pushed a fix |
Since 6.0 I have issues with stored scripts. The lang is set to "mustache" and therefore ES can't interpret them correctly. Also the resulting stored script is not always the same ?!
By running this script multiple times I get two different outputs in random order:
Strange stuff!
The text was updated successfully, but these errors were encountered: