In my Elasticsearch schema mapping, date fields are indexed as:
{"type":"date","format":"dateOptionalTime"}
But, in the Elasticsearch, the date fields are indexed in incorrect format. This is causing problem when we read data from Elasticsearch and try to parse the date.
For eg: mongo-connector parses:
ISODate("2015-12-09T10:36:25.773Z") in mongo as "2015-12-09T10:36:25.773000"
ISODate("2017-11-29T19:54:21.000Z") in mongo as "2017-11-29T19:54:21"
and pushes them to Elasticsearch. Basically, it seems to replace Z with 000.
In my Elasticsearch schema mapping, date fields are indexed as:
But, in the Elasticsearch, the date fields are indexed in incorrect format. This is causing problem when we read data from Elasticsearch and try to parse the date.
For eg: mongo-connector parses:
ISODate("2015-12-09T10:36:25.773Z")
in mongo as"2015-12-09T10:36:25.773000"
ISODate("2017-11-29T19:54:21.000Z")
in mongo as"2017-11-29T19:54:21"
and pushes them to Elasticsearch. Basically, it seems to replace
Z
with000
.I am using the development version: 2.5.2.dev0
I think this issue is similar to this