I want to update the data type of fields I already created an index with data also visualization now want to update the data type of one field. I am doing this in the console of dev tools
I tried to do it but giving an error enter image description here
Since you're hitting the
_mappingendpoint, you need to remove themappingssection in the payload and only haveproperties.However, once a field is created you cannot change its type, you need to recreate a new index with the proper mapping field type.
UPDATE: If you need to set default values for your fields you can use the
null_valuemapping parameter.