Spark How to store DateType As Date not as Long

when creating index with spark all DateType column is stored as Long
But I want to store as Date
How can i ?

@ramvodedara ES-Hadoop/Spark delegates to Elasticsearch's facilities for automatically assigning mappings. If one of the mappings is not what you expected automatically, you must set the mapping for the index yourself before sending documents to it in ES-Hadoop/Spark.

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