删除

根据唯一id标识删除数据

  1. curl -XDELETE http://router_server/$db_name/$space_name/$id

根据查询过滤结果删除数据

  1. curl -H "content-type: application/json" -XPOST -d'
  2. {
  3. "query": {
  4. "sum": [{}]
  5. }
  6. }
  7. ' http://router_server/$db_name/$space_name/_delete_by_query

根据id批量删除

  1. curl -H "content-type: application/json" -XPOST -d'
  2. {"delete": {"_id": "v1"}}
  3. {"delete": {"_id": "v2"}}
  4. {"delete": {"_id": "v3"}}
  5. ' http://router_server/$db_name/$space_name/_bulk

查询详细语法见下文