删除
根据唯一id标识删除数据
- curl -XDELETE http://router_server/$db_name/$space_name/$id
根据查询过滤结果删除数据
- curl -H "content-type: application/json" -XPOST -d'
- {
- "query": {
- "sum": [{}]
- }
- }
- ' http://router_server/$db_name/$space_name/_delete_by_query
根据id批量删除
- curl -H "content-type: application/json" -XPOST -d'
- {"delete": {"_id": "v1"}}
- {"delete": {"_id": "v2"}}
- {"delete": {"_id": "v3"}}
- ' http://router_server/$db_name/$space_name/_bulk
查询详细语法见下文