向Elasticsearch中插入一条数据的时候报错:strict_dynamic_mapping_exception
今天向elasticsearch中插入一条数据的时候,直接报错了:
请问是怎么回事?
"type": "strict_dynamic_mapping_exception",
"reason": "mapping set to strict, dynamic introduction of [device_manufacturer] within [_doc] is not allowed"
请问是怎么回事?
发布于:2年前 (2022-11-16) IP属地:四川省
1 个回答
这个错误的提示是说明当前索引创建mapping的时候使用了严格模式,所以不能插入超过mapping定义之外的字段,上面提示device_manufacturer这个字段是多余的,因此把这个字段去掉即可。
发布于:2年前 (2022-11-16) IP属地:四川省
我来回答
您需要 登录 后回答此问题!