Multiple values/sources for composite aggregations
See original GitHub issueCurrently the implementation for composite aggregations is limited to a single field due to a bug. The Composite class:
The sources type has a value 'hash': True
whereas in practice for multiple aggregated fields one actually need to pass a list of hashes.
This list of hashes seems (in my incredibly short experience of elasticsearch) like an uncommon pattern. I have a fix locally by introducing sources as a list
- see (https://github.com/howespt/elasticsearch-dsl-py/commit/3d854a8533b547ca840f5fd30431ed1f90a84d70)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Composite aggregation | Elasticsearch Guide [8.5] | Elastic
This will create composite buckets from the values created by two value sources, a date_histogram and a terms . Each bucket is composed...
Read more >Composite Aggregation
A multi-bucket aggregation that creates composite buckets from different sources. Unlike the other multi-bucket aggregation the composite aggregation can be ...
Read more >Elasticsearch Composite Aggregations - How to Use ... - Opster
Composite aggregations are multi-bucket aggregations that combine buckets from many sources to produce composite buckets.
Read more >How to use multiple Composite Aggregations in ElasticSearch?
In the response, you can see the first aggregation ( total ) with 1000s of objects in the bucket but the second one...
Read more >Elasticsearch 7 Composite Aggregation - Logi Analytics
properties ) can be used to specify the maximum number of buckets to return for each query within a composite aggregation. Valid values...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your patience, a fix has just been pushed, release coming soon.
I think I also do…