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