Hi,
For testing purposes, I need to run a groovy script in an update request against the embedded server. My problem is that I am not able to load a Groove Script Engine. I added this maven dependency:
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.0</version>
But I am still getting this error when I try to make a call:
"Caused by: java.lang.IllegalArgumentException: script_lang not supported [groovy]
at org.elasticsearch.script.ScriptService.getScriptEngineServiceForLang(ScriptService.java:211)
at org.elasticsearch.script.ScriptService.compile(ScriptService.java:241)
at org.elasticsearch.script.ScriptService.executable(ScriptService.java:441)
at org.elasticsearch.action.update.UpdateHelper.executeScript(UpdateHelper.java:249)"
Is there any way to run a groovy script in Embedded ES 2.2.0 using Java Client?
My node configuration is like that:
nodeBuilder
.clusterName("testing")
.local(true)
;
nodeBuilder.settings()
.put("client.transport.ping_timeout", "5s")
.put("path.home", "test")
.put("number_of_shards", 1)
.put("http.enabled", false)
;