请关注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"
}
}
}

最新文章

  1. Cannot find the Word template:WordToRqm.dot
  2. 解决NSData转NSString返回nil的问题
  3. 内网安全工具之hscan扫描
  4. sqlserver工作日常使用sql--持续完善中
  5. Windows玩转Docker(一):安装
  6. 在VC6.0下如何调用Delphi5.0开发的进程内COM
  7. 2016NEFU集训第n+3场 D - Bicycle Race
  8. AIX盘rw_timeout值过小导致IO ERROR
  9. PostgreSQL版本快速升级
  10. javaScript设计模式--观察者模式(observer)
  11. 调试利器GDB(上)
  12. sudo: cd: command not found
  13. 登录界面之Axure原型制作
  14. Servlet----------Servlet 概述
  15. web前端开发,如何提高页面性能优化?
  16. 【Linux】crontab 定时启动sh
  17. Nginx配置项优化详解(转)
  18. http://www.cnblogs.com/snake-hand/p/3206655.html
  19. 利用border制作三角形原理
  20. Redis学习笔记-数据操作篇(Centos7)

热门文章

  1. C# 文本输入限制类型,datagridview单元格输入验证
  2. Spring中的用到的设计模式
  3. [python]模块及包
  4. Agreement has been updated--Edit Phone Number最便捷解决办法(不需要安全提示问题和双重认证)
  5. spring boot 第一个Dome
  6. javascript 数组排序
  7. 【bzoj3998】弦论 后缀自动机
  8. 【python跨目录调用】结合自己遇到的问题到解决问题,作个记录
  9. 洛谷 P1486 [NOI2004]郁闷的出纳员
  10. python 3中 的subprocess