default mapping file : $ES_HOME/conf/default-mapping.json
{
"_default_" : {
"_ttl" : {
"enabled" : true,
"default" : 7776000000
},
"_source" : {
"enabled" : false
},
"properties" : {
"env" : {
"type" : "string",
"index" : "not_analyzed"
},
"eventbody" : {
"type" : "string"
},
"hostname" : {
"type" : "string",
"index" : "not_analyzed"
},
"logfilename" : {
"type" : "string",
"index" : "not_analyzed"
},
"logpath" : {
"type" : "string",
"index" : "not_analyzed"
},
"logtype" : {
"type" : "string",
"index" : "not_analyzed"
},
"timestamp" : {
"type" : "long",
"ignore_malformed" : false
},
"nanotime" : {
"type" : "long",
"ignore_malformed" : false
}
}
}
}
本文介绍Elasticsearch默认映射文件的配置细节,包括字段类型定义、索引设置等,适用于理解Elasticsearch如何处理未明确指定映射的数据。
3246

被折叠的 条评论
为什么被折叠?



