elasticsearch scripts of type [inline], operation [update] and lang [groovy] are disabled

来源:互联网 发布:逆火刷机软件 编辑:程序博客网 时间:2024/05/13 07:52
当我执行:
  
curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{    "script" : "ctx._source.text = \"some text\""}'
出现了elasticsearch scripts of type [inline], operation [update] and lang [groovy] are disabled这样的错误
解决方法在elasticsearch.yml  里添加
script.inline: onscript.indexed: on
重启即可
原文:
    Exception in thread "main" java.lang.IllegalArgumentException: script.disable_dynamic is not a supported setting, replac e with fine-grained script settings. Dynamic scripts can be enabled for all languages and all operations by replacing script.disable_dynamic:  false with s cript.inline: on and script.indexed: on in elasticsearch.yml
0 0
原创粉丝点击