Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error message when trying to add second mapping type #31963

Closed
cbuescher opened this issue Jul 11, 2018 · 2 comments
Closed

Confusing error message when trying to add second mapping type #31963

cbuescher opened this issue Jul 11, 2018 · 2 comments
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

Comments

@cbuescher
Copy link
Member

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:

PUT test
{
    "mappings" : {
        "type1" : {
        }
    }
}

PUT twitter/_mapping/type2 
{
  "properties": {
    "email": {
      "type": "keyword"
    }
  }
}

-> "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.

@cbuescher cbuescher added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v6.2.4 labels Jul 11, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@cbuescher
Copy link
Member Author

Nevermind, saw the error. D'oh, facepalm!

@javanna javanna added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants