Hi Rich,
perfect, that's it, thx a lot.
Cheers, Tom
Am Dienstag, 16. Dezember 2014 11:02:04 UTC+1 schrieb Rich Somerfield:
>
> 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/a36ad00b-5f7e-4e36-9c75-928befb63fea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.