I created a field mapping for keyword only field and ingested the data to ES,but I could still see field.keyword in my index.
In my case field name is AB.Field1
Is it due to .(dot) in my field Name or any other issue?
PUT _template/test1
{
"order": 9,
"version": 1,
"index_patterns": [
"test1*",
"test2*"
],
"settings": {
"index": {
"number_of_shards": "2",
"number_of_replicas": "1",
"refresh_interval": "5s"
}
},
"mappings": {
"dynamic_templates": [
{
"keyword_only_field": {
"match_pattern": "regex",
"match": "^(AB.Field1|BC.Field1|AB.Field2|BC.Field2)$",
"match_mapping_type": "string",
"mapping": {
"type": "keyword",
"ignore_above": 256
}
}
}
]
},
"aliases": {}
}