es查询备忘录
1. es查询
# 查所有索引 GET _cat/indices # 条件查询 GET customers_data/_search { "size": 100, "query": { "bool": { "must": [ {"terms": { "platform.keyword":["政采云-国税"], "boost": 1.0} } ] } } } # 分组统计 GET customers_data/_search { "size": 0, "aggs": { "platform": { "terms": { "field": "platform.keyword", "size": 10000 } } } } # 条件删除 POST customers_data/_delete_by_query { "query": { "bool": { "must": [ {"terms": { "platform.keyword":["国网"], "boost": 1.0} } ] } } }
2