开发者社区 问答 正文

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

已解决

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

展开
收起
阿里云服务支持 2022-12-08 15:35:09 465 分享 版权
1 条回答
写回答
取消 提交回答
  • 官方回答

    写入的部分文档date字段无法辨识为date字段,从而被解析为text类型,建议通过模板或提前定义好字段格式

    "type": "date",

    "format": "yyyy-MM-dd||epoch_millis"

    2022-12-08 15:54:20
    赞同 展开评论