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


#1

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:


(Magnus Kessler) #2

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