The following:
PUT t
{
"mappings": {
"t": {
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"analyzer": "english",
"type": "keyword"
}
}
}
]
}
}
}
PUT t/t/1
{
"foo": "bar"
}
creates a keyword field without an analyzer, which is good. However, I would have expected it to throw an exception about the presence of the analyzer setting.
The following:
creates a
keywordfield without an analyzer, which is good. However, I would have expected it to throw an exception about the presence of the analyzer setting.