I am running Elasticsearch 5.6.8 from the official elasticsearch provided docker container.
I want to disable norms for specific fields. I modify my template and then create a new index. I then read the mappings of the new index and there is no indication of norms being disabled. I have tried 3 different configuration styles to disable norms as it has changed across versions. I get the same result with all 3.
"dynamic_templates": [
{
"message_field": {
"match": "fieldname",
"match_mapping_type": "string",
"mapping": {
"analyzer": "whitespace",
"norms": {
"enabled": false
},
"type": "text"
}
}
},
"dynamic_templates": [
{
"message_field": {
"match": "fieldname",
"match_mapping_type": "string",
"mapping": {
"analyzer": "whitespace",
"norms": false
},
"type": "text"
}
}
},
"dynamic_templates": [
{
"message_field": {
"match": "fieldname",
"match_mapping_type": "string",
"mapping": {
"analyzer": "whitespace",
"omit_norms": true
},
"type": "text"
}
}
},
Questions:
- Is there a way to confirm that norms are disabled on a field in an index?
- What is the correct configuration file format for 5.6.X
Thanks!