Date Format : java.lang.IllegalArgumentException: Mapper exception

Hi,

We have a date mapping as follows
"createdOn": {
"type": "date",
"fields": {
"sortable": {
"type": "keyword"
}
},
"ignore_malformed": true,
"format": "yyyy-MM-dd HH:mm:ss||strict_date_optional_time||epoch_millis"
}

and we are inserting the data as "createdOn": "2017-11-20T13:44:17.414Z" and we end up with exception
java.lang.IllegalArgumentException: Mapper for [createdDate] conflicts with existing mapping in other types:
[mapper [createdDate] is used by multiple types. Set update_all_types to true to update [format] across all types.]
at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:130)
at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:94)

We do not have any other attributes with name "createdDate".
We have double checked this.

Wondering what could be wrong here ?

Regards,
Maney

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