2016-11-27 55 views
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"} 
    } 
} 
} 

Kibana screen - you see rank as (?) unknown type

回答

1

刷新字段列表,解決問題

添加的任何字段後需要刷新。要做到這一點:

  1. 轉到Kiabana
  2. 轉到管理和選擇指數。
  3. 點擊刷新字段列表。

enter image description here

相關問題