这里我使用elasticsearch官方给的go语言包([go-elasticsearch](https://github.com/elastic/go-elasticsearch))
go-elasticsearch...res, err = EsClient.DeleteByQuery(
index,
&buf,
)
if err !...,
// },
// },
//}
//indexArr := []string{index}
//es.DeleteByQuery(indexArr..."must": map[string]interface{}{
// "match_all": map[string]interface{}{}, // 这里不设置其他查询条件...//"must": [], // must条件,类似SQL中的and, 代表必须匹配条件
//"must_not": [], // must_not条件,跟must相反,必须不匹配条件