2015-09-25 212 views
1

我有大約3300個文件,其中填入了geo_point類型的字段。 當我嘗試在瓷磚地圖上顯示我的文檔時,kibana說「沒有找到結果」。Kibana在瓦片地圖上不顯示結果

我已經試圖把座標爲: - 地理散列字符串 - [經度,緯度]數組 - 字符串「緯度,經度」

- 與「緯度」和「經度」屬性 對象根據ES docs,所有這些設置geo_point的方法都是允許的。 Kibana將此字段檢測爲geo_point(字段名稱附近有一個地球圖標),但沒有在瓦片地圖上顯示。

我怎麼了?

我正在使用Kibana 4.2,elasticsearch 2.0.0

+0

另見:http://stackoverflow.com/questions/29393819/kibana-4-detects-geodata-but-doesnt-display-any-results-on-the-map –

回答

2

我已經管理它。

發生這種情況是因爲我在字段中使用了「type」:「嵌套」參數的geo_point類型字段。

我已將此外層字段更改爲「dynamic」:「true」,現在我可以可視化我的位置了!

+0

您能否詳細說明(顯示示例數據)? –

+0

我可以通過從映射中刪除「類型」:「嵌套」來獲得嵌套的geo_point。不需要「動態」:「真實」。 – Aliza

0

我能夠通過從映射中刪除「類型」:「嵌套」來獲得嵌套的geo_point。不需要「動態」:「真實」。我的映射是這樣的:

"mappings": { 
     "_default_": { 
      "_all": { 
       "enabled": true 
      }, 
      "_ttl": { 
       "enabled": true, 
       "default": "12m" 
      }, 
      "dynamic_templates": [{ 
       "string_fields": { 
        "match": "*", 
        "match_mapping_type": "string", 
        "mapping": { 
         "type": "string", 
         "index": "analyzed", 
         "omit_norms": true, 
         "fields": { 
          "raw": { 
           "type": "string", 
           "index": "not_analyzed", 
           "ignore_above": 256 
          } 
         } 
        } 
       } 
      }], 
      "properties": { 
       "@version": { 
        "type": "string", 
        "index": "not_analyzed" 
       }, 
       "user_data": { 
        "properties": { 
         "user_geolocation": { 
          "properties": { 
           "location": { 
            "type": "geo_point" 
           } 
          } 
         } 
        } 
       } 
      } 
     } 
    }