Date faceting with milliseconds


(lyes zaiko) #1

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.
To view this discussion on the web visit 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.


(Adrien Grand) #2

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:
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 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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.


(lyes zaiko) #3

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> 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:
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 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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPp6fkGtVC1OGqXTzCwAV__%3D1MWieqF11%3DOgSXOSfJnXWQj3Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4