# Fixed bucket size faceting

**URL:** https://discuss.elastic.co/t/fixed-bucket-size-faceting/13474
**Category:** Elasticsearch
**Created:** [September 5, 2013, 12:40pm UTC](https://discuss.elastic.co/t/fixed-bucket-size-faceting/13474 "2013-09-05T12:40:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Val\_Vakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val_vakar/32/2017_2.png) [@Val\_Vakar](https://discuss.elastic.co/u/Val_Vakar)
#### Post date: [September 5, 2013, 12:40pm UTC](https://discuss.elastic.co/t/fixed-bucket-size-faceting/13474/1 "2013-09-05T12:40:56Z")

</div>

Hello experts!

Is there a way to create facets fixed-size buckets? In other words, rather  
than specifying ranges, we would specify the max number of items per bucket  
and have ES figure out the ranges.

Thanks!  
-Val

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [September 5, 2013, 12:55pm UTC](https://discuss.elastic.co/t/fixed-bucket-size-faceting/13474/2 "2013-09-05T12:55:59Z")

</div>

No, for both range and histogram facets you need to define the ranges /  
intervals yourself.

On 5 September 2013 14:40, Val Vakar [val.vakar@gmail.com](mailto:val.vakar@gmail.com) wrote:

> Hello experts!
> 
> Is there a way to create facets fixed-size buckets? In other words, rather  
> than specifying ranges, we would specify the max number of items per bucket  
> and have ES figure out the ranges.
> 
> Thanks!  
> -Val
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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).  
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, 2:18am UTC](https://discuss.elastic.co/t/fixed-bucket-size-faceting/13474/3 "2017-07-06T02:18:02Z")

</div>


