Confusing error message when trying to add second mapping type #31963
Labels
>enhancement
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
v6.2.4
I just came across this slightly confusing error message when playing around with things for #31906.
When creating an index with type "type1", then trying to add a second type "type" two gives the following error:
-> "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [type2, _doc]"
I would have expected "[type2, type1]" or something like that instead since I haven't used the "_doc" type anywhere. Tried this on 6.2.4, will see how it looks like in newer versions.
The text was updated successfully, but these errors were encountered: