elasticsearch 2.4.0执行update的时候发现的一个问题
2024-08-24 19:19:58
请关注inline参数的变化
正确:
POST /test/type1/1/_update
{
"script" : {
"inline": "ctx._source.tags.contains(tag)?ctx.op =\"delete\":(ctx.op =\"none\")",
"params" : {
"tag" : "blue"
}
}
}
正确:
POST /test/type1/1/_update
{
"script" : {
"inline": "ctx._source.tags.contains(tag)?(ctx.op =\"delete\"):(ctx.op =\"none\")",
"params" : {
"tag" : "blue"
}
}
}
错误:
POST /test/type1/1/_update
{
"script" : {
"inline": "ctx._source.tags.contains(tag)?ctx.op =\"delete\":ctx.op =\"none\" ",
"params" : {
"tag" : "blue"
}
}
}
最新文章
- Cannot find the Word template:WordToRqm.dot
- 解决NSData转NSString返回nil的问题
- 内网安全工具之hscan扫描
- sqlserver工作日常使用sql--持续完善中
- Windows玩转Docker(一):安装
- 在VC6.0下如何调用Delphi5.0开发的进程内COM
- 2016NEFU集训第n+3场 D - Bicycle Race
- AIX盘rw_timeout值过小导致IO ERROR
- PostgreSQL版本快速升级
- javaScript设计模式--观察者模式(observer)
- 调试利器GDB(上)
- sudo: cd: command not found
- 登录界面之Axure原型制作
- Servlet----------Servlet 概述
- web前端开发,如何提高页面性能优化?
- 【Linux】crontab 定时启动sh
- Nginx配置项优化详解(转)
- http://www.cnblogs.com/snake-hand/p/3206655.html
- 利用border制作三角形原理
- Redis学习笔记-数据操作篇(Centos7)