Elasticsearch: Support nested aggregation (#62301)

* Add nested query support

* Add nested support for alerts

* update nested aggregation

* cleanup types

* Add nested integration test

* Move aggdef to nested

* fixed merge conflict

* fixed lint warning

* mark nested-mode experimental

---------

Co-authored-by: Ethan Gallant <ethan@ziax.com>
Co-authored-by: Ethan J. Gallant <ethan.gallant@acquia.com>
This commit is contained in:
Gábor Farkas
2023-01-27 16:18:36 +01:00
committed by GitHub
parent d5433a488a
commit 88119ad6c3
9 changed files with 83 additions and 2 deletions
+5
View File
@@ -236,6 +236,11 @@ type TermsAggregation struct {
Missing *string `json:"missing,omitempty"`
}
// NestedAggregation represents a nested aggregation
type NestedAggregation struct {
Path string `json:"path"`
}
// ExtendedBounds represents extended bounds
type ExtendedBounds struct {
Min int64 `json:"min"`