【发布时间】:2017-06-21 15:47:18
【问题描述】:
我用
禁用了动态映射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"
如何真正重新打开动态映射?
【问题讨论】:
标签: elasticsearch dynamic field logstash mappings