Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]
时间: 2024-01-05 19:40:04 浏览: 320
这个错误是由Elasticsearch引起的,它的类型是mapper_parsing_exception,错误的原因是解析映射时出现问题。具体地,根映射定义中包含不受支持的参数。 下面是一个修复后的映射语句的示例:
```
{
"properties": {
"birthday": {
"type": "date",
"store": true
},
"hobby": {
"type": "text",
"store": true
},
"id": {
"type": "long",
"store": true
},
"name": {
"type": "text",
"store": true
}
}
}
```
请确保你的映射语句与你正在使用的Elasticsearch版本兼容。不同的版本可能会有不同的语法和参数支持。 也请注意,在修复错误之前,确保你的Elasticsearch版本号是正确的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]](https://blog.csdn.net/ozl544578/article/details/125967168)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [ElasticSearch创建索引报错:mapper_parsing_exception Root mapping definition has unsupported ...](https://blog.csdn.net/sun_luming/article/details/120120533)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文