PUT /索引名/索引类型/_mapping { "dynamic":false }
{ "dynamic":"strict" }
这样我们之后写入非手动创建的其他字段数据时会得到如下错误:
mapping set to strict, dynamic introduction of [hatae] within [data] is not allowed
关闭ElasticSearch动态创建mapping
原文:https://www.cnblogs.com/merely/p/12597987.html