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 ?