I try to agg using terms:
"aggs": {
"provider": {
"terms": {
"field": "provider.keyword"
}
}
}
with this response:
"aggregations": {
"provider": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "password",
"doc_count": 3
},
{
"key": "facebook",
"doc_count": 2
},
{
"key": "google",
"doc_count": 1
}
]
}
and the es-response-parser was parsing to follow result:
[
{ provider: 'password' },
{ provider: 'facebook' },
{ provider: 'google' }
]
expected:
[
{ password: 3 },
{ facebook: 2'},
{ google: 1 }
]
can u help me to figure out what i missing?
I try to agg using terms:
with this response:
and the es-response-parser was parsing to follow result:
expected:
can u help me to figure out what i missing?