弹性搜索script_exception:类型为[inline],operation [search]和lang [groovy]的脚本被禁用

时间:2016-09-30 07:54:27

标签: elasticsearch

我正在使用弹性搜索2.3.1,当我尝试对包含数字的字段进行排序时,它显示错误弹性搜索script_exception:类型为[inline],operation [search]和lang [groovy]的脚本被禁用。 我在我的elasticsearch.yml中添加了script.engine.groovy.inline.aggs:但我仍然收到错误。

1 个答案:

答案 0 :(得分:0)

ElasticSearch Update API已经多次更改,您看到的许多答案都与不同的ES版本有关。搜索ES文档时,请确保查看与您的ES版本相关的文档。

在你的elasticsearch.yml中: script.inline: true script.indexed: true