Dear Lucas,
When importing data, ensure that the data type in one index is the same. If the data type is different the error message "illegal_argument_exception, final mapping would have more than 1 type" may be displayed.
You can run required commands to check the mapping of the index, confirm the existing index type name, and check whether the type of the new data is the same as that of the existing type
curl -XGET --tlsv1.2 --negotiate -k -u : "https://ip:httpport/test_index/_mapping?pretty"
{
"test_index" : {
"mappings" : {
"test_type1" : {
"properties" : {
"date" : {
"type" : "date",
"format" : "yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||epoch_millis"
},
"text" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
}
}
}
Thanks.