# Facet intervals

**URL:** https://discuss.elastic.co/t/facet-intervals/11519
**Category:** Elasticsearch
**Created:** [April 10, 2013, 12:59am UTC](https://discuss.elastic.co/t/facet-intervals/11519 "2013-04-10T00:59:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vinh](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@vinh](https://discuss.elastic.co/u/vinh)
#### Post date: [April 10, 2013, 12:59am UTC](https://discuss.elastic.co/t/facet-intervals/11519/1 "2013-04-10T00:59:28Z")

</div>

Is there a way to do a date\_histogram facet and obtain interval results even for intervals that are empty? For example, suppose I facet on date range of 24 hrs and specify interval=1hour. I'd like to get back 24 entries, even if some of the entries may have 0 counts.

--  
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:41am UTC](https://discuss.elastic.co/t/facet-intervals/11519/2 "2017-07-06T02:41:54Z")

</div>


