我禁用了动态映射
curl -XPUT 'localhost:9200/_template/template_all?pretty' -H 'Content-Type: application/json' -d' { "template": "*", "order":0, "settings": { "index.mapper.dynamic": false }}'
我想重新打开它
curl -XPUT 'localhost:9200/_template/template_all?pretty' -H 'Content-Type: application/json' -d' { "template": "*", "order":0, "settings": { "index.mapper.dynamic": true }}'
它已确认它是真的,但是当我尝试让 logstash 向它发送信息时,在 logstash 错误日志中我得到了回复-
"reason"=>"trying to auto create mapping, but dynamic mapping is disabled"
我实际上如何重新打开动态映射?