Export data from aggregation
salvob41 opened this issue · 0 comments
salvob41 commented
Is it possible to export data from aggregations ? How ?
I tried with a query like this:
{
"size": 0,
"aggs": {
"unique": {
"terms": {
"field": "user.id",
"order": {
"_key": "asc"
}
}
}
}
}
And it just returns me the data with all the fields ..
I would like the key
and the doc_count
. Is there a way?