I have a question about sub aggregations. We're using a number of terms
aggregations on some high cardinality fields, returning the top 50 results
(as set using size) in each case. We also have a cardinality
sub-aggregation on each of the terms aggregations to get the number of
unique users (a separate field) for each term returned.
We are wondering if the cardinality aggregation is executed for every
possible term found by the terms aggregation, or only the top 50 terms? We
are seeing very high memory usage and getting out of memory errors when
running this, and it's not clear from the documentation what's going on
under the hood. A cardinality aggregation on every single possible term
would go some way towards explaining things.
Is there a more efficient way of running these queries?
Thanks in advance,
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@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/02eb67d1-73a1-4a7e-8e76-d4c48525360e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.