Date/timestamp fields are indexing as long

Hi,

I am using Elasticsearch for Apache Hadoop 6.2.0 to index my data to ES using Structured Streaming (spark2.2.0)
My data contains one date field and one timestamp field along with other fields.

Data is successfully indexing.
But the date and timestamp fields values are saved in millis (i.e. long) and data type of these fields is long (as index is created automatically).

How can I save dates as in their original format and not in long ?
Also how to auto create index with date fields data type as date not long ?

This is a known issue https://github.com/elastic/elasticsearch-hadoop/issues/1040 and in my opinion a bug that needs fixing. If you would like, please head over to the issue and upvote it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.