elastic-rs / elastic

An Elasticsearch REST API client for Rust
Apache License 2.0
253 stars 40 forks source link

Support more aggregations #257

Open KodrAus opened 6 years ago

KodrAus commented 6 years ago

Looks like there's a new typed_keys parameter we could utilise to parse aggregations exactly.

Since it depends on the parameter being present in the request we would probably have to have an alternative Aggregations parser that expects it to be present.

API Gist

See here

mwilliammyers commented 4 years ago

I think we should add this to #319 (v0.21.0). I am running into the issue of not being able to easily access anonymous aggregations in a project.

I am happy to open a PR to replace the current implementation with your gist.