when i insert date to elastic search in the format of yyyy-MM-DD
hh:mm:ss from java api getting date format exception.but when i use
yyyy-MM-DDThh:mm:ss between them it is inserted fine.please explain me is T
here elasticsearch standard format?
please explain me functionality of T in date.i used the default mapping
of elasticsearch i didn't customized any thing.
I am speculating here that you should use the ISO 8601 format for dates
since this is quite common and has a timezone which yours lacks
(introducing ambiguity).
The T is a common separator between the date and time parts.
when i insert date to Elasticsearch in the format of yyyy-MM-DD
hh:mm:ss from java api getting date format exception.but when i use
yyyy-MM-DDThh:mm:ss between them it is inserted fine.please explain me is T
here elasticsearch standard format?
please explain me functionality of T in date.i used the default mapping
of elasticsearch i didn't customized any thing.
so my understanding is while inserting in to elasticsearch we need to
use T as separator other wise it won't insert in to date field from java
API because it expecting standard format of ISO 8601 am I right?
Thanks
phani
On Tuesday, March 31, 2015 at 7:48:42 PM UTC+5:30, James Green wrote:
I am speculating here that you should use the ISO 8601 format for dates
since this is quite common and has a timezone which yours lacks
(introducing ambiguity).
The T is a common separator between the date and time parts.
when i insert date to Elasticsearch in the format of yyyy-MM-DD
hh:mm:ss from java api getting date format exception.but when i use
yyyy-MM-DDThh:mm:ss between them it is inserted fine.please explain me is T
here elasticsearch standard format?
please explain me functionality of T in date.i used the default mapping
of elasticsearch i didn't customized any thing.
The T is a standard symbol, not exclusive to any one software project.
Elasticsearch uses Joda to parse dates, and it looks like the default
accepts ISO 8601 which I would expect.
so my understanding is while inserting in to elasticsearch we need to
use T as separator other wise it won't insert in to date field from java
API because it expecting standard format of ISO 8601 am I right?
Thanks
phani
On Tuesday, March 31, 2015 at 7:48:42 PM UTC+5:30, James Green wrote:
I am speculating here that you should use the ISO 8601 format for dates
since this is quite common and has a timezone which yours lacks
(introducing ambiguity).
The T is a common separator between the date and time parts.
when i insert date to Elasticsearch in the format of yyyy-MM-DD
hh:mm:ss from java api getting date format exception.but when i use
yyyy-MM-DDThh:mm:ss between them it is inserted fine.please explain me is T
here elasticsearch standard format?
please explain me functionality of T in date.i used the default
mapping of elasticsearch i didn't customized any thing.
Thanks for the reply under stood your point please walk through the
following scenario i found.
I have important scenario to share with you.
I created index it contains date field no format was specified.
the following is the mapping :
"created" :{
"type" : "date",
"format" : "dateOptionalTime"
}
when I index data using river the date is inserting in the following
format : "2015-03-06T18:04:15.000-06:00" automatically.
due to this I am getting my daily record counts. but if the date format is
2015-03-06T18:04:15.000Z like this it is working fine and showing
daily counts fine
But from database my date is coming like this '2015-03-01 00:00:00' So how
can we control the date from river while indexing in to elasticsearch
which should be display in 2015-03-06T18:04:15.000Z format.
please suggest me on this due to this my monthly sales also not showing
correctly.is there any custom date format need to define when data is
populating
using river from database.
why "-06:00" this is appending at the end of each date please explain me
this concept?
Thanks,
phani
On Tuesday, March 31, 2015 at 8:40:49 PM UTC+5:30, James Green wrote:
The T is a standard symbol, not exclusive to any one software project.
Elasticsearch uses Joda to parse dates, and it looks like the default
accepts ISO 8601 which I would expect.
so my understanding is while inserting in to elasticsearch we need to
use T as separator other wise it won't insert in to date field from java
API because it expecting standard format of ISO 8601 am I right?
Thanks
phani
On Tuesday, March 31, 2015 at 7:48:42 PM UTC+5:30, James Green wrote:
I am speculating here that you should use the ISO 8601 format for dates
since this is quite common and has a timezone which yours lacks
(introducing ambiguity).
The T is a common separator between the date and time parts.
when i insert date to Elasticsearch in the format of yyyy-MM-DD
hh:mm:ss from java api getting date format exception.but when i use
yyyy-MM-DDThh:mm:ss between them it is inserted fine.please explain me is T
here elasticsearch standard format?
please explain me functionality of T in date.i used the default
mapping of elasticsearch i didn't customized any thing.
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.