elasticsearch调用时,报如下错:
scripts of type [inline], operation [aggs] and lang [groovy] are disabled
解决方法:
在es配置文件elasticsearch.yml最后加上如下:
script.inline: on
script.indexed: on
script.file: on
注意:前面要空一格
本文介绍了解决Elasticsearch中groovy脚本禁用导致的错误问题,通过修改elasticsearch.yml文件中的配置来启用内联、索引和文件类型的脚本。
elasticsearch调用时,报如下错:
scripts of type [inline], operation [aggs] and lang [groovy] are disabled
解决方法:
在es配置文件elasticsearch.yml最后加上如下:
script.inline: on
script.indexed: on
script.file: on
注意:前面要空一格
344
291
5万+
1万+
3592

被折叠的 条评论
为什么被折叠?