This is creating problem in sorting, as type "date" considers only milli seconds and documents are being sorted in wrong order for whom the difference is at nano second level.
How do I set the default date type as "date_nanos" ?
I know I can delete and re-create the index and type date_nanos and reindex it, but I cannot do this in production. So basically, by default it should take date_nanos.
Please suggest how I can configure this.
Also I am using helm charts, so configuration to be done at ES chart possible?
Unfortunately i think this is the only way to change, you need to explictily map the field to use date_nanos, so for any existing date you need to change the mapping and reindex.
For new indices you can use a dynamic template to map any date type as date_nanos.
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.