0
根據此How to update a field type in elasticsearch,我添加了Put Mapping AP。然而Kibana,我將財產作爲未知數(見下面的截圖)。在等級字段,還有數值或0如何強制索引屬性爲數字(或浮點數)?
{
"tweet" : {
"properties" : {
"user" : {"type" : "string", "index" : "not_analyzed"},
"message" : {"type" : "string", "null_value" : "na"},
"postDate" : {"type" : "date"},
"priority" : {"type" : "integer"},
"rank" : {"type" : "float"}
}
}
}