Histogram of high-cardinality aggregate


(Mike Kaplinskiy) #1

Hey folks,

Playing around with the aggregation API, I was wondering whether this is
possible. Taking the example
at http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html
, how would I get the histogram of the minimum price [not all prices] of
all the products?

--
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/fee3c6f5-1341-4590-a682-bdc7bcdc595e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Binh Ly-2) #2

Unfortunately, I don't believe you can do a sub-aggregation on a
single-value metric at the moment. For now, you'll probably have to index
the actual ("min") values and then aggregate on them.

--
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/64a4ff9a-0100-4960-abbd-9580bd0222f4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3