Elastic search error operation [search] and lang [groovy] is disabled? Elastic search error operation [search] and lang [groovy] is disabled? elasticsearch elasticsearch

Elastic search error operation [search] and lang [groovy] is disabled?


Add script.engine.groovy.inline.search: on to elasticsearch.yml configuration file and restart the node.


adding script.groovy.sandbox.enabled: true to .yml works for me

For ES Version 2.x+

script.inline: onscript.indexed: on


Add script.engine.groovy.inline.aggs: onscript.engine.groovy.inline.update: on to elasticsearch.ymland restart