开发者社区 问答 正文

Elasticsearch数据写入报错"reason"=>"mapper [message] ...

已解决

Elasticsearch数据写入报错"reason"=>"mapper [message] cannot be changed from type [date] to [text]"

展开
收起
提个问题 2024-05-29 11:08:03 43 分享 版权
1 条回答
写回答
取消 提交回答
  • 开发者社区问答官方账号
    官方回答
    采纳回答
    您好,您写入的部分文档date字段无法辨识为date字段,从而被解析为text类型,建议您通过模板或提前定义好字段格式
      "type": "date",
      "format": "yyyy-MM-dd||epoch_millis"
    2024-05-29 11:08:04
    赞同 展开评论