Is it possible to update Index Mapping in version 1.7.3?


(Jason Zheng) #1

Hi All,

I see v2.0 document shown update mapping page, but cannot see the page in 1.7.3, is it possible to update index mapping or some other way to do it?

Jason


(Ted Kyungtae Kim) #2

I think I'm having the same issue that I was trying to update to ES2.0, and failed.

I checked with Elasticsearch Migration Checker v0.16 and it was giving me that "Conflicting field mappings".

Mapping for field 41bcc7oqmev1zaaxocmg:weight conflicts with: vjzm2ddrzlvjfgnpubgg:weight. Check parameter: type Mapping for field 41bcc7oqmev1zaaxocmg:weight conflicts with: vk-e8temmlekgeute7ze:weight. Check parameter: type

I looked into the problem and figured out that some weight field was in 'long' and some others were as 'double'.

Is there anyway to force cast the types?

Thanks


(Magnus Bäck) #3

I see v2.0 document shown update mapping page, but cannot see the page in 1.7.3,

"Update mapping page"—not sure what you're talking about here.

is it possible to update index mapping or some other way to do it?

Changing how a field is mapped (e.g. its data type) requires all documents to be reindexed into a new index with adjusted mappings.


(Jason Zheng) #4

Sorry that typing mistake (it should be update field mapping)
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#updating-field-mappings

Jason


(system) #5