您的位置:首页 > 运维架构

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

2016-04-27 14:15 417 查看
当我执行:

curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{
"script" : "ctx._source.text = \"some text\""
}'[/code]
出现了elasticsearch scripts of type [inline], operation [update] and lang [groovy] are disabled这样的错误

解决方法在elasticsearch.yml  里添加

script.inline: on
script.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 [code]script.disable_dynamic:  false
with
s cript.inline: on
and
script.indexed: on
in elasticsearch.yml
[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: