I am using elasticsearch-2.2.0 version. I need to enable scripting using JAVA API. Basically I want to create a node using NodeBuilder and enable scripting support.
I tried setting the properties "script.inline : true" and "script.indexed : true" as below :
Settings settings = Settings.builder().put("script.inline", true).put("script.indexed", true).build();
but still it does not works.
Is there a way to enable scripting in elasticsearch-2.2.0 version using JAVA ?