Reindex: weird coercing problem

Hello!

I want to migrate some documents using remote reindex API from ES 1.x to ES5.1.2 and I have a weird problem:

  • Error: mapper [field1] of different type, current_type [keyword], merged_type [long]
  • Error: mapper [field2] cannot be changed from type [float] to [long]

The mappings in ES5 cluster are: {"field1":{"type":"keyword"},"field2":{"type":"float"}} and the document that I want to reindex is {"field1":1,"field2":2}

Creating a document with exactly the same content using POST API works, but reindex fails.
I don't have any coerce settings at index level or field level.

Thank you,

Anyone?

Thank you

Bump.

It is really important, because otherwise I can't move all the data from one cluster to the other cluster.

Reindex task's response is:
{..."response":{...
"failures": [
{
"index": "index",
"type": "default",
"id": "AU0TIvm5KBq_GySoOJRi",
"cause": {
"type": "illegal_argument_exception",
"reason": "mapper [field1] of different type, current_type [keyword], merged_type [long]"
},
"status": 400
},
{
"index": "index",
"type": "default",
"id": "AU0tz1N8KBq_GySoDvr9",
"cause": {
"type": "illegal_argument_exception",
"reason": "mapper [field2] cannot be changed from type [float] to [long]"
},
"status": 400
}
]
}}}

Documents are:

  • id: AU0TIvm5KBq_GySoOJRi: {"field1":1}
  • id: AU0tz1N8KBq_GySoDvr9: {"field2":2}

Reindex request is:
{
"waitForCompletion": false,
"body":{
"conflicts": "proceed",
"source": {
"remote": { "host": "host"},
"index":"index",
"size": 1000,
"type":"default"
},
"dest": {
"index": "index"
}
}
}

Thank you

Bump

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