Hi Tom,
I think the "Cardinality" aggregation is what you want.
e.g. :
{
...query...
},
"aggregations": {
"totalUniqueUsers": {
"cardinality": {
"field": "username"
}
}
}
-Rich
On Tuesday, December 16, 2014 8:48:51 AM UTC, Tom wrote:
>
> Hi,
>
> is there a way to get just the count of buckets (not the count of docs,
> which works i know) of an aggregation without receiving the whole buckets
> content?
>
> thx, Tom
>
>
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/834082a2-1336-4c2d-a4b0-5bfbe52cafb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.