I am using Elasticsearch Version 7.5.2.
I have one index with grows in size and documents. Once it has reached 1000 documents , we are performing rollover.
If you do not use index template the type will be automatically mapped based on the first document encountered and can vary. I would recommend using an index template to control mappings for important fields.
So can we state below this is what would have happened.
Rollover condition met , Index is rollover to myevents-000002
After Rollover the first document came in, having field "startTime" was some value "epoch" , hence it made it as long data type. While the existing "myevents-000001" was having data type as "date".
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.