0
我不期而遇改變了我的默認映射爲刪除彈性搜索動態模板
{
"template": "*",
"mappings": {
"_default_": {
"properties" : {
"message": {"type":"string", "index": "analyzed"}
},
"dynamic_templates": [
{
"my_template": {
"match_mapping_type": "string",
"mapping": {
"index": "not_analyzed"
}
}
}
]
}
}
}
,現在每一個新的指數具有所有的字符串字段作爲not_indexed。我想刪除此動態模板並將所有內容都更改回來。我的目標並未被編入某些領域。 謝謝你的建議。
鏈接:如果您知道你以前在你的默認模板中,你爲什麼不簡單地用'PUT/_template/your_template_name'覆蓋它? – Val
您運行的是哪種版本的Elasticsearch?您是如何將數據攝入Elasticsearch的? – cinhtau