虚拟机中通过reindex *** 作Elasticsearch(代码)虚拟机虚拟机的各种应用及问题

虚拟机中通过reindex *** 作Elasticsearch(代码)虚拟机虚拟机的各种应用及问题,第1张

虚拟机中通过reindex *** 作Elasticsearch(代码)

curl -XPOST '192.168.1.135:29200/_reindex?pretty' -H 'Content-Type: application/json' -d'

{

  "source": {

    "index": "index1"

  },

  "dest": {

    "index": "index2"

  },

  "script": {

    "inline": "ctx.rent_per_month=ctx.rent_per_month/ctx.area"

  }

 

}'

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/545249.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2019-09-10
下一篇 2019-09-10

发表评论

登录后才能评论

评论列表(0条)

保存