自学内容网 自学内容网

kibana 删除es指定数据,不是删除索引

1 查询条件查询出满足条件的数据

GET     /order_header_idx_202410/_search
{"from":0,"size":10,"query":{"bool":{"filter":[{"term":{"oh_tenantId":{"value":"0211000001","boost":1.0}}},{"term":{"oh_orderType":{"value":"wholesale","boost":1.0}}},{"terms":{"oh_shopId":["100005"],"boost":1.0}},{"bool":{"must_not":[{"terms":{"oh_orderStatus":["os.split"],"boost":1.0}}],"adjust_pure_negative":true,"boost":1.0}}],"adjust_pure_negative":true,"boost":1.0}},"sort":[{"oh_orderAt":{"order":"desc"}}]}

2.删除数据


DELETE /order_header_idx_202409/order/8154750110004000

order_header_idx_202409 索引名称

order   -type

8154750110004000  _id


原文地址:https://blog.csdn.net/dfyh1993/article/details/142791635

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!