The "key_as_string" gives me wrong month. In document the date field has value "15-10-2018" but "key_as_string" gives me "15-01-2018". I am using Elasticsearch version 6.4. What could be wrong?
I don't have time yet to reproduce but could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
@dadoonet thanks for your response. The issue is resolved now.
I was using DD-MM-YYYY as date format I changed it to dd-MM-yyyy and now it gives correct "key_as_string" values.
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.