Create multiple type in one index

Hello everyone
whene i create a multiple type in the same index in elasticsearch version 7.
2.0 i get these error
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [business] as the final mapping would have more than 1 type: [employee, building]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [business] as the final mapping would have more than 1 type: [employee, building]"
},
"status": 400
}
can you help me and told to me how can i create a multiple type in the same index
thanks

You can't.
One type per index only.

Read https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch

thank's

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