I am currently storing dates in the format: yyyyMMdd'T'HH:mm:ss. (same
format used in the overview video) So my current time looks like this:
20130625T11:20:00.
My mapping for the date field looks like this:
"date" : {
"type" : "date",
"format" : "dateOptionalTime"
},
I am trying to use the date_histogram and I seem to get very weird
timestamps. All my dates are just a few days old, so there is no timestamp
that is older than the 20th of June, 2013 nor is their any timestamps that
are after todays date. However in the date histogram facet results I get
are like this:
{
time: 634245916608000000
count: 3
}
{
time: 634245979766400000
count: 15
}
{
time: 634246042838400000
count: 6
}
{
Any idea as to why the timestamps are so far in the future? A range query
works pretty well, but not the date_histogram.
I am currently storing dates in the format: yyyyMMdd'T'HH:mm:ss. (same
format used in the overview video) So my current time looks like this:
20130625T11:20:00.
My mapping for the date field looks like this:
"date" : {
"type" : "date",
"format" : "dateOptionalTime"
},
I am trying to use the date_histogram and I seem to get very weird
timestamps. All my dates are just a few days old, so there is no timestamp
that is older than the 20th of June, 2013 nor is their any timestamps that
are after todays date. However in the date histogram facet results I get
are like this:
{
time: 634245916608000000
count: 3
}
{
time: 634245979766400000
count: 15
}
{
time: 634246042838400000
count: 6
}
{
Any idea as to why the timestamps are so far in the future? A range query
works pretty well, but not the date_histogram.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.