无法创建esMap日期字段

9nvpjoqh  于 2021-06-10  发布在  ElasticSearch
关注(0)|答案(1)|浏览(277)

我有一个表,一列是udt

CREATE TYPE baseinfo (
    head_commission_nr text,
    internal_source text,
    internal_changed date,
);

表中该部分的esMap:

"internal_changed": {
      "type": "date",
      "cql_collection": "singleton"
    }

索引失败,原因是:
“type”:“mapper\u parsing\u exception”,“reason”:“执行失败query:null :field“internal\u changed”with type date does not match type timestamp“,”caused\u by“{”type“:”invalid\u request\u exception“,”reason“:”field“internal\u changed”with type date does not match type timestamp“}
我做错什么了?

ymdaylpp

ymdaylpp1#

删除已创建的索引并按以下方式更改Map:

"internal_changed": {
      "type": "date",
      "format": "yyyy-MM-dd ",
      "cql_collection": "singleton"
    }

相关问题