Skip to content

Instantly share code, notes, and snippets.

@jtibshirani
Created November 22, 2018 02:14
Show Gist options
  • Save jtibshirani/66bb9719a6398fe05d966bf2aba4c68a to your computer and use it in GitHub Desktop.
Save jtibshirani/66bb9719a6398fe05d966bf2aba4c68a to your computer and use it in GitHub Desktop.
Typeless put mapping request fails when there is a pre-existing type.
PUT index
{
"mappings": {
"some_type": {
"properties": {
"field": { "type": "keyword" }
}
}
}
}
PUT index/_mapping/_doc
{
"properties": {
"field": { "type": "keyword" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment