# Histogram facet grouping ( Ensuring unique members )

**URL:** <https://discuss.elastic.co/t/histogram-facet-grouping-ensuring-unique-members/3940>\
**Category:** Elasticsearch\
**Created:** [February 17, 2011, 6:18pm UTC](https://discuss.elastic.co/t/histogram-facet-grouping-ensuring-unique-members/3940 "2011-02-17T18:18:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubbell](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hubbell](https://discuss.elastic.co/u/hubbell)\
**Post date:** [February 17, 2011, 6:18pm UTC](https://discuss.elastic.co/t/histogram-facet-grouping-ensuring-unique-members/3940/1 "2011-02-17T18:18:05Z")

</div>

Hello all. New to ElasticSearch... great stuff. Question about the  
histogram faceting that I am having trouble with. How do I ensure  
documents that are on the edge of the interval are not counted twice?  
For instance when using an interval of 100, an item who's value is 200  
will be counted in both the 100-200 bucket and the 200-300 bucket. How  
do I get facets that represent 0-99, 100-199, etc. Am I missing  
something obvious? Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 18, 2011, 5:37am UTC](https://discuss.elastic.co/t/histogram-facet-grouping-ensuring-unique-members/3940/2 "2011-02-18T05:37:16Z")

</div>

Can you post an example of this happening (check [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)). Basically, a value of 200 will fall into the 200-300 bucket.  
On Thursday, February 17, 2011 at 8:18 PM, hubbell wrote:

> Hello all. New to Elasticsearch... great stuff. Question about the  
> histogram faceting that I am having trouble with. How do I ensure  
> documents that are on the edge of the interval are not counted twice?  
> For instance when using an interval of 100, an item who's value is 200  
> will be counted in both the 100-200 bucket and the 200-300 bucket. How  
> do I get facets that represent 0-99, 100-199, etc. Am I missing  
> something obvious? Thanks.

---

<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, 4:11am UTC](https://discuss.elastic.co/t/histogram-facet-grouping-ensuring-unique-members/3940/3 "2017-07-06T04:11:53Z")

</div>


