I am using Elasticsearch 7.10.2 version.
I need to create one index,
- Index name = device
- _type name = device
But I am not able to create getting error.
POST device/device/169062
{
"device_name": "DESK-0002",
"device_ip": "1.1.1.1",
"device_os": "Default",
"device_status": "Online"
}
Getting below error :-
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [device] as the final mapping would have more than 1 type: [_doc, device]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [device] as the final mapping would have more than 1 type: [_doc, device]"
},
"status": 400
}
I tried reindex also,
POST _reindex
{
"source": {
"index": "device",
"type" : "_doc"
},
"dest": {
"index": "device1",
"type" : "device"
}
}
Getting below error :
"failures": [
{
"index": "device1",
"type": "device",
"id": "169062",
"cause": {
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [device1] as the final mapping would have more than 1 type: [_doc, device]"
},
"status": 400
}
]