You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
Also.. it would be good to explain on the first example using .keyword 1) why it's needed & 2) how the auto-index generation automatically adds it to the text fields.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://www.elastic.co/guide/en/elasticsearch/guide/master/_buckets_inside_buckets.html#_buckets_inside_buckets
The following example won't work unless you specify the .keyword on color/price/make.
GET /cars/transactions/_search
{
"size" : 0,
"aggs": {
"colors": {
"terms": {
"field": "color"
},
"aggs": {
"avg_price": {
"avg": {
"field": "price"
}
},
"make": {
"terms": {
"field": "make"
}
}
}
}
}
}
The text was updated successfully, but these errors were encountered: