# MVEL to Groovy

**URL:** <https://discuss.elastic.co/t/mvel-to-groovy/20957>\
**Category:** Elasticsearch\
**Created:** [November 26, 2014, 6:24pm UTC](https://discuss.elastic.co/t/mvel-to-groovy/20957 "2014-11-26T18:24:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brad\_Jordan\_2](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@Brad\_Jordan\_2](https://discuss.elastic.co/u/Brad_Jordan_2)\
**Post date:** [November 26, 2014, 6:24pm UTC](https://discuss.elastic.co/t/mvel-to-groovy/20957/1 "2014-11-26T18:24:17Z")

</div>

I'm trying to upgrade from ES 1.1.1 to ES 1.4.0. I need to updated my .MVEL  
scripts to groovy so in my Java code I did this:

updateRequestBuilder.setScript(scriptValue,  
ScriptService.ScriptType.INLINE);  
updateRequestBuilder.setScriptLang("groovy");

My unit tests are failing which makes me thing the script is no longer  
being applied. Am I doing this correctly? Any ideas on how best to debug if  
the script is being applied?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/eb602917-d3a5-49c1-bbac-57ceeebde742%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eb602917-d3a5-49c1-bbac-57ceeebde742%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:47am UTC](https://discuss.elastic.co/t/mvel-to-groovy/20957/2 "2017-07-06T00:47:26Z")

</div>


