-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stats aggregations #33
Comments
Thanks - can you share the query you're using? |
Hi @tomtaylor this is the documentation for the stats aggregation: https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-aggregations-metrics-stats-aggregation.html Maybe an additional struct StatsAggregation? And then one can match on the values of the map to determine whether to return a Snap.Aggregation or a Snap.StatsAggregation? Something along the lines of:
|
yeah something as simple as that would be awesome, but at a high level elasticsearch/opensearch support 2 types of aggregations, one is called a bucket aggregation which seems to be supported and the other type is a metrics aggregation which isn't. |
even if we had a generic aggregation where it just returned the ES data as json it would at least mean that there was some way to get it with Snap |
I can't seem to get stats aggregations to work. I get back something like
I think the problem is that elasticsearch doesn't return buckets etc. for stats aggregations - it returns something like
The text was updated successfully, but these errors were encountered: