Aggregegation buckets count

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/99c0776d-8059-432d-b2a7-5ce115dae9d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 elasticsearch+unsubscribe@googlegroups.com.
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.

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 elasticsearch+unsubscribe@googlegroups.com.
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.

Happy to help.

On Tuesday, December 16, 2014 10:37:25 AM UTC, Tom wrote:

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/470ec648-20c8-4967-9c38-fa6ab407c8fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.