# Facets Date Range

**URL:** <https://discuss.elastic.co/t/facets-date-range/216586>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [January 26, 2020, 11:13pm UTC](https://discuss.elastic.co/t/facets-date-range/216586 "2020-01-26T23:13:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Gautier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_gautier/32/57330_2.png) [@Jonathan\_Gautier](https://discuss.elastic.co/u/Jonathan_Gautier)\
**Post date:** [January 26, 2020, 11:13pm UTC](https://discuss.elastic.co/t/facets-date-range/216586/1 "2020-01-26T23:13:32Z")

</div>

Hi how to make facet date range in search ui OR filters date range in filters ? Thanks

---

<div class="post-metadata">

**Author:** ![miker256](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miker256/32/60563_2.png) [@miker256](https://discuss.elastic.co/u/miker256)\
**Post date:** [January 27, 2020, 1:03am UTC](https://discuss.elastic.co/t/facets-date-range/216586/2 "2020-01-27T01:03:32Z")

</div>

This may help you out @Jonathan_Gautier . 🙂

[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-daterange-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-daterange-aggregation.html)

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [January 27, 2020, 11:35am UTC](https://discuss.elastic.co/t/facets-date-range/216586/3 "2020-01-27T11:35:14Z")

</div>

The reference from @miker256 is relevant if you're using Elasticsearch. Since this was posted in "App Search" I'll assume you're using the "App Search" product and not Elasticsearch.

[Here](https://swiftype.com/documentation/app-search/api/search/facets#range-facet) is the reference for creating Range Facets with App Search.

[Here](https://github.com/elastic/search-ui/blob/master/ADVANCED.md#example-4) is the reference for adding Facets in Search UI.

Hope this helps,

Jason

---

<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:** [February 24, 2020, 11:35am UTC](https://discuss.elastic.co/t/facets-date-range/216586/4 "2020-02-24T11:35:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
