慕粉1927057669
2021-04-21 22:59
PUT http://127.0.0.1:9200/people/man/1
{
"name": "wali",
"country": "china",
"age": 29,
"date": "1988-03-10"
}报错
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Mapper for [date] conflicts with existing mapper:\n\tCannot update parameter [format] from [yyyyMMdd HH:mm:ss||yyyyMMdd||epoch_millis] to [strict_date_optional_time||epoch_millis]"
}
],
"type": "illegal_argument_exception",
"reason": "Mapper for [date] conflicts with existing mapper:\n\tCannot update parameter [format] from [yyyyMMdd HH:mm:ss||yyyyMMdd||epoch_millis] to [strict_date_optional_time||epoch_millis]"
},
"status": 400
}
format 的格式是:[yyyyMMdd HH:mm:ss||yyyyMMdd||epoch_millis]
传入的参数格式是:"date": "1988-03-10"
应该是两者格式不匹配造成报错,要么修改下传入的参数,要么修改下format的格式
ElasticSearch入门
67750 学习 · 308 问题
相似问题
回答 3