Commit Graph

2 Commits

Author SHA1 Message Date
Pongpon Sinlapa 251bd25d02 update lib es v8 2023-01-14 18:34:59 +07:00
Ido Perlmuter 7fa767fc28
Add support for Count requests (#8)
This commit adds initial support for Count requests, which are simple
search requests asking to get the number of matches for a query.

The functionality is provided by the Count() function, which accepts a
query object (implementing the Mappable interface), and can be executed
just like a search request.

    res, err := esquery.
        Count(esquery.Match("user", "someone")).
        Run(es)
2020-04-06 12:24:44 +03:00