elasticsearch scripts of type [inline], operation [update] and lang [groovy] are disabled
2016-04-27 14:15
417 查看
当我执行:
[/code]
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: falsewith
s cript.inline: onand
script.indexed: onin elasticsearch.yml
[/code]
相关文章推荐
- TDDL、Amoeba、Cobar、MyCAT架构比较
- 服务器添加永久静态路由
- LTP 语言技术平台 在linux下的安装配置
- Makefile里调用Shell注意点
- centos配置iptables
- centos下搭建kdump环境
- Linux进程快照相关知识
- ubuntu下nginx+php+mysql安装配置
- 脚本修改Openstack官方Ubuntu镜像默认用户的密码
- Linux进程快照相关知识
- Linux进程快照相关知识
- Centos6下安装Mono和Jexus部署ASP.NET应用程序(纯干货)
- openwrt源码下载地址(镜像)
- 配置Nginx反向代理Tomcat
- 嵌入式开发板的学习步骤-基于iTOP-4412开发板
- 高性能Web服务器Nginx的配置与部署研究(15)Upstream负载均衡模块
- Linux驱动开发之 二 (那些必须要了解的硬件知识 之 处理器篇)
- Linux常用命令的简单总结
- git基本操作 nginx基本操作
- 关于nginx指令的问题