We are upgrading our elastic search and we have found that most of our groovy scripts are not working with the new version.
How can I migrate all my scripts which are on groovy to painless ? Is there a tool or library which can make this task manageable as we have loads of scripts ?
If it has to be done manually then how can I do it, is there any good source / link for this ?
For ex, below is on the aggregation script we use :-
There is no automated way of converting. Many scripts "just work". There is anevolving specification for the language you can read. In your case, it looks like the largest problem is _source and _agg. These need to be access through params, eg params._source and params._agg.
Hi,
I think the main issue is we are upgrading from very old version 1.4.2 to 6.2.4 version.
So most of the scripts are not working.
Anyway I tried your suggestion but I am getting this error exception :-
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.