Re: ElasticSearch date format

2015-04-03 Thread phani . nadiminti
Hi james, 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" : "dat

Re: ElasticSearch date format

2015-03-31 Thread James Green
http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html 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. On 31 March 2015 at 15:32, w

Re: ElasticSearch date format

2015-03-31 Thread phani . nadiminti
HI James, Thanks for quick reply.. 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

Re: ElasticSearch date format

2015-03-31 Thread James Green
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. On 31 March 2015 at 14:26, wrote: > Hi All, > >when i insert date to

ElasticSearch date format

2015-03-31 Thread phani . nadiminti
Hi All, when i insert date to elastic search in the format of -MM-DD hh:mm:ss from java api getting date format exception.but when i use -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