index options在映射中初始设置字段后,似乎无法覆盖该字段的
例:
put testput test/business/_mapping{ "properties": { "name": { "type": "string","index_options": "freqs", "norms": { "enabled": false } } }}put test/business/_mapping{ "properties": { "name": { "type": "string", "index_options": "docs", "norms": { "enabled": false } } }}get test/business/_mapping { "test": { "mappings": { "business": { "properties": { "name": { "type": "string", "norms": { "enabled": false }, "index_options": "freqs" } } } } }}您将不得不重新创建索引以获取新的映射



