aquasecurity / esquery

An idiomatic Go query builder for ElasticSearch
Apache License 2.0
305 stars 57 forks source link

Add support for the "Delete by Query" API #11

Closed ido50 closed 4 years ago

ido50 commented 4 years ago

This commit adds support for ElasticSearch's Delete by Query API. Usage is very similar to that of Search and Count requests:

esquery.Delete().
    Index("index_1, "index_2").
    Query(esquery.Bool()...).
    Run(
        es,
        esapi.WithAnalyzeWildcard(true),
    )
ido50 commented 4 years ago

@oranmoshai