# Getting all buckets for a Date Histogram Facet

**URL:** <https://discuss.elastic.co/t/getting-all-buckets-for-a-date-histogram-facet/10732>\
**Category:** Elasticsearch\
**Created:** [February 13, 2013, 9:50pm UTC](https://discuss.elastic.co/t/getting-all-buckets-for-a-date-histogram-facet/10732 "2013-02-13T21:50:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://discuss.elastic.co/u/Mike)\
**Post date:** [February 13, 2013, 9:50pm UTC](https://discuss.elastic.co/t/getting-all-buckets-for-a-date-histogram-facet/10732/1 "2013-02-13T21:50:42Z")

</div>

How can I get all the buckets for a Date Histogram Facet, including the  
ones that get 0 hits? For the terms facet there is "all\_terms" which I can  
set to true and get the terms that have 0 hits.

--  
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:51am UTC](https://discuss.elastic.co/t/getting-all-buckets-for-a-date-histogram-facet/10732/2 "2017-07-06T02:51:31Z")

</div>

Closed on July 6, 2017, 2:51am UTC


