just as a hint: you can reduce script compilations by using parameters. Then Elasticsearch needs to compile the script just once and call it many times with different parameters and this is much better for performance.
Having that said, here's what you need to do to change the setting:
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.