[英]Unable to create ES mapping date field
I have a table, one column is a UDT我有一张表,一列是 UDT
CREATE TYPE baseinfo (
head_commission_nr text,
internal_source text,
internal_changed date,
);
ES mapping for that part of the table:表的那部分的 ES 映射:
"internal_changed": {
"type": "date",
"cql_collection": "singleton"
}
Indexing fails with:索引失败:
"type": "mapper_parsing_exception", "reason": "Failed to execute query:null : Field "internal_changed" with type date does not match type timestamp", "caused_by": { "type": "invalid_request_exception", "reason": "Field "internal_changed" with type date does not match type timestamp" } “type”:“mapper_parsing_exception”,“reason”:“无法执行查询:null:类型日期的字段“internal_changed”与类型时间戳不匹配”,“caused_by”:{“type”:“invalid_request_exception”,“reason” :“日期类型的字段“internal_changed”与类型时间戳不匹配”}
What am I doing wrong?我究竟做错了什么?
delete the indices have been created and change the mapping like this:删除已创建的索引并像这样更改映射:
"internal_changed": {
"type": "date",
"format": "yyyy-MM-dd ",
"cql_collection": "singleton"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.