# Histogram of high-cardinality aggregate

**URL:** <https://discuss.elastic.co/t/histogram-of-high-cardinality-aggregate/16024>\
**Category:** Elasticsearch\
**Created:** [February 26, 2014, 7:21am UTC](https://discuss.elastic.co/t/histogram-of-high-cardinality-aggregate/16024 "2014-02-26T07:21:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Kaplinskiy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_kaplinskiy/32/1776_2.png) [@Mike\_Kaplinskiy](https://discuss.elastic.co/u/Mike_Kaplinskiy)\
**Post date:** [February 26, 2014, 7:21am UTC](https://discuss.elastic.co/t/histogram-of-high-cardinality-aggregate/16024/1 "2014-02-26T07:21:41Z")

</div>

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](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](mailto: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](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](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [February 26, 2014, 2:25pm UTC](https://discuss.elastic.co/t/histogram-of-high-cardinality-aggregate/16024/2 "2014-02-26T14:25:21Z")

</div>

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](mailto: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](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](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:47am UTC](https://discuss.elastic.co/t/histogram-of-high-cardinality-aggregate/16024/3 "2017-07-06T01:47:11Z")

</div>


