Last active
December 19, 2018 02:18
-
-
Save jtibshirani/0929faf60bd78c794aeb01cc08d04c73 to your computer and use it in GitHub Desktop.
Typeless index call can fail against an index with a custom type.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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