Es 2.2: Validating fields only defined once

(Brian Hudson) #1

Attempting to upgrade from ES 2.0 to 2.2 but when I do I am unable to index any documents.

It looks like it is related to pull request #15243, where now ES validates that a field is only defined once. We have _type defined in our mapping and included in the JSON docs we are attempting to index.

I've resolved these issues, our type mapping generator no longer outputs a mapping for _type and it is no longer included in our JSON docs. This resolves the issue moving forward. But what about our existing indexes? Is there any way to repair them or are they now broken forever (ES 2.2+)?

(Adrien Grand) #2

Unfortunately, mappings are append-only so this data can't be used in ES 2.2+.

(Brian Hudson) #3

I was afraid that was the answer. Guess we'll have to wait until we are willing to reindex before the 2.2 upgrade, I really wanted those geo_point updates too!

(system) #4