Hello,
I'm using ES 5.6.14 and I'm trying to use _reindex to migrate from v2 index to v5 index, and I have this error.
{"type":"action_request_validation_exception","reason":"Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 624;"}
Firstly i tried to fix it using this :
"script": { "lang": "painless", "source": "ctx._id=null" }
but ES needs not null _id
So, I tried to managed this error with this script, but it didn't work too :
"script": {"lang": "painless","source": "if (ctx._id.length() > 512) { ctx.op = 'noop'}"
And the process does not go to the end of reindex.
Is someone succeeded to deal with it ? And how ?
Thank you