Not sure it’s your issue but elasticsearch 1.5 uses Groovy 2.4.0
<dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.4.0</version> </dependency> -- David Pilato - Developer | Evangelist elastic.co @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr <https://twitter.com/elasticsearchfr> | @scrutmydocs <https://twitter.com/scrutmydocs> > Le 25 avr. 2015 à 13:29, Terra Sacer <terrasa...@gmail.com> a écrit : > > I forgot to express. My project have got groovy dependency. > > <dependency> > <groupId>org.codehaus.groovy</groupId> > <artifactId>groovy-all</artifactId> > <version>2.3.5</version> > <type>jar</type> > </dependency> > > > On Saturday, April 25, 2015 at 2:18:52 PM UTC+3, Terra Sacer wrote: > While partial update with java api I get this error: Caused by: > org.elasticsearch.ElasticsearchIllegalArgumentException: script_lang not > supported [groovy] > > My es version 1.5.1 > > My code > > client.prepareUpdate(index, type, documentID) > > .setScript("ctx._source.current=current; " > + > "ctx._source.updatedate=updatedate",ScriptService.ScriptType.INLINE) > .setScriptParams(updateObject).execute().actionGet(); > > > updateObject variable is defined as follows. > > private Map<String, Object> updateObject = new HashMap<String,Object>(); > > Help me please, what is problem? > > -- > 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+unsubscr...@googlegroups.com > <mailto:elasticsearch+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/889b18cd-8564-4601-8b36-28a74bcf4c55%40googlegroups.com > > <https://groups.google.com/d/msgid/elasticsearch/889b18cd-8564-4601-8b36-28a74bcf4c55%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/C543ACDF-D9D6-433F-912D-9D8A7276CD60%40pilato.fr. For more options, visit https://groups.google.com/d/optout.