Only change date format on mapping with 6.X

Hi !

I've discovered that I need milisecond on a field with type date, however I already stored some data with it. On Elasticsearch 2.X, it was possible to only change the date format of a field:

The format setting must have the same setting for fields of the same name in the same index. Its value can be updated on existing fields using the PUT mapping API.

However, I don't see anything on the Elasticsearch 6.X documentation, and I only need to change the following:

"format" : "yyyy-MM-dd HH:mm:ssZ"

To:

"format" : "yyyy-MM-dd HH:mm:ss.SSSSSSZ"

Is the modification's possible without consequences ?

Many thanks :slight_smile:

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