Hi, I'm working on migrating my elasticsearch 2.4 to the latest version 7.5.
Due to removal of mapping types in the elasticsearch 6.0, I was earlier using multiple types in a single index.
Now, I've defined my mappings like this:
"test-index: {
"mappings": {
"properties": {
// custom type field - category
"category": {
"properties": {
// definitions
}
},
"products": {
"properties": {
// definitions
}
},
}
}
}
So, in this way in a single index, I'm trying to store multiple types. This does not give me any error and output is a success.
But, when I try to populate the data in the index during bulk indexing, it throws this error:
Rejecting mapping update to [test-index] as the final mapping would have more than 1 type: [_doc, category]
Rejecting mapping update to [test-index] as the final mapping would have more than 1 type: [_doc, products]
Why is this happening? It would be great if anyone can help me fix this out.