I've the following index definition for the date:
"handshaketime" : {"type":"date","format":"YYYY-MM-ddTHH:mm:ss.SSSZ"}
And the actual date is of this form:
"handshaketime":"2015-04-07T10:43:03.000-07:00"
I've specified that date coming from DB has the above mentioned format but elasticsearch still gives me the following error.
Caused by: org.elasticsearch.index.mapper.MapperParsingException: failed to
parse date field [2015-04-07T10:43:03.000-07:00], tried both date format
[YYYY-MM-dd HH:mm:ss], and timestamp number with locale []
I'm using elasticsearch 1.4.4 with jdbc_river 1.4.0.10.
Please tell me whats going on.