java动态映射未应用,在_映射中缺失
我试图创建一个应用于字符串字段或日期字段的动态映射
{
"xx": {
"mappings": {
"dynamic_templates": [
{
"dates": {
"match": "*",
"match_mapping_type": "date*",
"mapping": {
"type": "date",
"format": "YYYY-mm-dd",
"doc_values": true
}
},
"string_fields": {
"mapping": {
"index": "not_analyzed",
"store": false,
"doc_values": true,
"type": "string"
},
"match": "*",
"match_mapping_type": "string"
}
}
]
}
}
}
但当我将其应用于索引时,“日期”部分缺失,只剩下字符串_字段
这是怎么回事
共 (0) 个答案