[英]Elasticsearch 6 Mapping creation throwing error
我正在使用ES-6,默認情況下, candidateCreationTime
創造時間在Kibana中被索引為數字。 如何將其映射到日期值?
{
"_index": "candidatesources",
"_type": "candidatesource",
"_id": "5c08b8930bcfe318ca2a00f4",
"_version": 3,
"_score": 1,
"_source": {
"candidateNotes": "Some Notes",
"candidateCreationTime": 1544066189124,
"state": "verified"
}
}
我嘗試過
PUT candidatesources/_mapping/csdate
{
"properties": {
"candidateCreationTime": {
"type": "date"
}
}
}
但是它給出了以下錯誤
Rejecting mapping update to [candidatesources] as the final mapping would have more than 1 type: [candidatesource, csdate]
我如何使其date
而不是number
?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.