利用es-head 删除指定查询条件中的数据

来源:互联网 发布:mac numbers 使用技巧 编辑:程序博客网 时间:2024/04/30 15:07

在head中的复合查询中选择DELETE 参数用_query

例如删除type 为gz_xx某个特定时间内的数据

http://xxx.xx.xxx.xx:9200/yuyinsearch-2016.01/gz_xx/

参数为_query

请求体为:

{
  "query": {
    "bool": {
      "must": [
        {
          "range": {
            "@timestamp": {
              "from": "2016-01-22T16:00:00.000Z",
              "to": "2016-01-23T15:59:58.000Z"
            }
          }
        }
      ]
    }
  }
}

0 0
原创粉丝点击