# Date faceting with milliseconds

**URL:** <https://discuss.elastic.co/t/date-faceting-with-milliseconds/15378>\
**Category:** Elasticsearch\
**Created:** [January 23, 2014, 11:03am UTC](https://discuss.elastic.co/t/date-faceting-with-milliseconds/15378 "2014-01-23T11:03:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyes\_zaiko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lyes_zaiko/32/11250_2.png) [@lyes\_zaiko](https://discuss.elastic.co/u/lyes_zaiko)\
**Post date:** [January 23, 2014, 11:03am UTC](https://discuss.elastic.co/t/date-faceting-with-milliseconds/15378/1 "2014-01-23T11:03:00Z")

</div>

Hi all!

Is it possible de perform a date faceting (date\_histogram) using a field  
wher I store the timestamp as milliseconds?

Thanks

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPp6fkF\_JPZtZkvh4tuuvWXztjkxJH0sCz4gR%3Dg8JnCL9%3DMoHQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPp6fkF_JPZtZkvh4tuuvWXztjkxJH0sCz4gR%3Dg8JnCL9%3DMoHQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [January 23, 2014, 8:43pm UTC](https://discuss.elastic.co/t/date-faceting-with-milliseconds/15378/2 "2014-01-23T20:43:18Z")

</div>

Hi,

Yes it is possible and would work out of the box. Actually, it could also  
work if you stored the timestamp as seconds since Epoch by setting  
factor=1000:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Thu, Jan 23, 2014 at 12:03 PM, Lyes zaiko [lyesjob@gmail.com](mailto:lyesjob@gmail.com) wrote:

> Hi all!
> 
> Is it possible de perform a date faceting (date\_histogram) using a field  
> wher I store the timestamp as milliseconds?
> 
> Thanks
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAPp6fkF\_JPZtZkvh4tuuvWXztjkxJH0sCz4gR%3Dg8JnCL9%3DMoHQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPp6fkF_JPZtZkvh4tuuvWXztjkxJH0sCz4gR%3Dg8JnCL9%3DMoHQ%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Adrien Grand

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j7EtwQVNr4A5tQkbbYY0Mmn\_TPL4XXRpkd-dcRF%2BW1LrQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j7EtwQVNr4A5tQkbbYY0Mmn_TPL4XXRpkd-dcRF%2BW1LrQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![lyes\_zaiko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lyes_zaiko/32/11250_2.png) [@lyes\_zaiko](https://discuss.elastic.co/u/lyes_zaiko)\
**Post date:** [January 31, 2014, 7:09am UTC](https://discuss.elastic.co/t/date-faceting-with-milliseconds/15378/3 "2014-01-31T07:09:05Z")

</div>

Thank you for quick reply  
Yes I tried it and it works perfectly for me

On Thu, Jan 23, 2014 at 9:43 PM, Adrien Grand \<  
[adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com)\> wrote:

> Hi,
> 
> Yes it is possible and would work out of the box. Actually, it could also  
> work if you stored the timestamp as seconds since Epoch by setting  
> factor=1000:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-date-histogram-facet.html)
> 
> On Thu, Jan 23, 2014 at 12:03 PM, Lyes zaiko [lyesjob@gmail.com](mailto:lyesjob@gmail.com) wrote:
> 
> > Hi all!
> > 
> > Is it possible de perform a date faceting (date\_histogram) using a field  
> > wher I store the timestamp as milliseconds?
> > 
> > Thanks
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAPp6fkF\_JPZtZkvh4tuuvWXztjkxJH0sCz4gR%3Dg8JnCL9%3DMoHQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPp6fkF_JPZtZkvh4tuuvWXztjkxJH0sCz4gR%3Dg8JnCL9%3DMoHQ%40mail.gmail.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Adrien Grand
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j7EtwQVNr4A5tQkbbYY0Mmn\_TPL4XXRpkd-dcRF%2BW1LrQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j7EtwQVNr4A5tQkbbYY0Mmn_TPL4XXRpkd-dcRF%2BW1LrQ%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPp6fkGtVC1OGqXTzCwAV\_\_%3D1MWieqF11%3DOgSXOSfJnXWQj3Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPp6fkGtVC1OGqXTzCwAV__%3D1MWieqF11%3DOgSXOSfJnXWQj3Bw%40mail.gmail.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, 1:53am UTC](https://discuss.elastic.co/t/date-faceting-with-milliseconds/15378/4 "2017-07-06T01:53:45Z")

</div>


