Scripting changes between Elasticsearch versions