-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Disabling _field_names don't work? #30862
Copy link
Copy link
Closed
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field typesTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Metadata
Metadata
Assignees
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field typesTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Type
Fields
Give feedbackNo fields configured for issues without a type.
Elasticsearch version (
bin/elasticsearch --version): 6.1.3Plugins installed: [] X-Pack Basic License
JVM version (
java -version): 1.8.0_92OS version (
uname -aif on a Unix-like system): Ubuntu 16.04 LTSDescription of the problem including expected versus actual behavior:
I try to tune my Elasticsearch for indexing speed so I have disabled _field_names in template:
"index_patterns": [ "logs*" ], "aliases": {}, "mappings": { "doc": { "_field_names": { "enabled": false }, "dynamic_templates": [ { "strings": { "mapping": { "type": "keyword" }, "match_mapping_type": "string" } } ],I see settings about _field_names in index mapping:
{ "logs_www-2018.05.25": { "mappings": { "doc": { "_field_names": { "enabled": false }, "dynamic_templates": [ { "strings": { "mapping": { "type": "keyword" }, "match_mapping_type": "string" } } ], "properties": { "@timestamp": { "type": "date" }, "level": { "type": "keyword" }, "message": { "analyzer": "logster", "type": "text", "norms": false }, "tag": { "type": "keyword", "ignore_above": 64 } }, "_source": { "excludes": [ "debug" ] } } } } }But I'm still able to run exists queries on that index:
{ "query": { "exists" : { "field" : "level" } } }So I guess _field_names are still active and add some overhead to indexing speed.
Steps to reproduce: