In preparation for the elasticsearch 2.0 upgrade, I noticed that the mvel script was deprecated in favor of groovy. My problem is that I am new to groovy and don’t know how to fix this error.
boolean engineTest = false; if (!engineTest) { engineTest = true;} return engineTest;
This causes the following error:
unexpected token: return @ line 1, column 68. [...]
Danny source
share