Is it safe to change field mapping from integer to long without index?

Recently we encountered ES ingestion errors that complains:
json_parse_exception: Numeric value (2147557547) out of range of int

After some digging we found that one of our index field mapping uses "integer" data type, which sadly should be "long".

We know changing a field mapping is dangerous, but is there any chance that changing between "integer" and "long" a safe operation? thanks :joy:

No, you cannot change integer to long for a given field without reindexing. The data is stored differently for the two datatypes.

1 Like

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