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


(Benjamin) #1

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
}


(Mark Harwood) #2

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.


(Benjamin) #3

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."


(system) #4

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