Timestamp vs unixtime


(Alexis Okuwa) #1

I wanted to know if there was any elasticsearch magic that happened with
timestamps vs unixtime. I find it pretty easy to use timestamps and just
use interger math from there. It also makes range queries and the amount of
time between to points pretty easy to figure out. Is there any reason to
use a timestamp in elasticsearch instead of just an int for unixtime?

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Jörg Prante) #2

You can enable automatic timestamping
http://www.elasticsearch.org/guide/reference/mapping/timestamp-field/ and
in queries, you can pass date formats, and let ES do the conversion.

Jörg

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexis Okuwa) #3

Jorg,

Currently since my time is based to a minute i am using what i call logTime
which is round(unixtime/60)

On Wed, Sep 4, 2013 at 4:57 AM, joergprante@gmail.com <joergprante@gmail.com

wrote:

You can enable automatic timestamping
http://www.elasticsearch.org/guide/reference/mapping/timestamp-field/ and
in queries, you can pass date formats, and let ES do the conversion.

Jörg

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/veT4QuHHJxw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Enjoy,
Alexis Okuwa
WojonsTech
424.835.1223

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4