Skip to content

Instantly share code, notes, and snippets.

@jtibshirani
Last active December 19, 2018 02:18
Show Gist options
  • Save jtibshirani/0929faf60bd78c794aeb01cc08d04c73 to your computer and use it in GitHub Desktop.
Save jtibshirani/0929faf60bd78c794aeb01cc08d04c73 to your computer and use it in GitHub Desktop.
Typeless index call can fail against an index with a custom type.
PUT index
{
"mappings": {
"doc": {
"properties": {
"field": {"type": "keyword"}
}
}
}
}
PUT index/_doc/1
{
"other-field": "value"
}
> {
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [doc : {properties={message={type=text, fields={keyword={type=keyword, ignore_above=256}}}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [doc : {properties={message={type=text, fields={keyword={type=keyword, ignore_above=256}}}}}]"
},
"status": 400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment