Only change date format on mapping with 6.X


#1

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.

https://www.elastic.co/guide/en/elasticsearch/reference/2.0/indices-put-mapping.html

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:


(system) #2

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