I'm on elasticsearch 6.0.0-rc2 and I've found I've not able to create an index with multiple types:
PUT twitter
{}
PUT twitter/_mapping/user
{
"properties": {
"name": {
"type": "string"
}
}
}
PUT twitter/_mapping/user2
{
"properties": {
"name": {
"type": "string"
}
}
}
Returns
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [user2, user]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [user2, user]"
},
"status": 400
}