1。❯ curl -XPOST http://localhost:9200/blog/article/1/_update -d '{"script":"ctx._source.content=\"new content\""}'
{"error":"ElasticsearchIllegalArgumentException[failed to execute script]; nested: ScriptException[scripts of type [inline], operation [update] and lang [groovy] are disabled]; ","status":400}
vim config/elasticsearch.yml
追加:
script.engine.groovy.inline.aggs: on
script.engine.groovy.inline.update: on
参考: