Mapper [Id] cannot be changed from type [text] to [integer]

Hi !
I have deleted my index and want to create a new index for (new map). But I get this error message:

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "mapper [Id] cannot be changed from type [text] to [integer]"
}
],
"type": "illegal_argument_exception",
"reason": "mapper [Id] cannot be changed from type [text] to [integer]"
},
"status": 400
}

The index can't have been deleted.
Do you have a process somewhere sending docs? That may have spawned a new index after you deleted the old one.

Thank you .
I find the problem.

"Fields need to be consistent across types. For instance if two fields have the same name in different types of the same index, they need to be of the same field type (string, date, etc.) and have the same configuration."

1 Like

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