Nested aggregation with path param
See original GitHub issueSuppose we have next doc: `{ …
"product" : {
"properties" : {
"resellers" : {
"type" : "nested",
"properties" : {
"name" : { "type" : "text" },
"price" : { "type" : "double" }
}
}
}
}
}`
Is there a way to built next aggregation query: `{
"query" : {
"match" : { "name" : "led tv" }
},
"aggs" : {
"resellers" : {
"nested" : {
"path" : "resellers"
},
"aggs" : {
"min_price" : { "min" : { "field" : "resellers.price" } }
}
}
}
}`
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
Elasticsearch aggregation with reverse_nested path parameter
The nested query/aggregation let you query/aggregate on nested objects. You have to specify the path which the query/aggregation goes into.
Read more >Nested aggregation | Elasticsearch Guide [8.5] | Elastic
A special single bucket aggregation that enables aggregating nested documents. ... As you can see above, the nested aggregation requires the path of...
Read more >Missing path field for nested aggregation ” + ... - Opster
This guide will help you check for common problems that cause the log ” Missing path field for nested aggregation ” + aggregationName...
Read more >Aggregations - OpenSearch documentation
The inner aggs keyword begins a new nested aggregation. The syntax of the parent aggregation and the nested aggregation is the same. Nested...
Read more >Bucket Aggregations - Open Distro for Elasticsearch
You can also aggregate values from nested documents to their parent; this aggregation is called reverse_nested . You can use reverse_nested to aggregate...
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
A bit late but here you go:
Thanks!