elasticsearch地理空间Map,无法渲染linestring

gev0vcfq  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(1)|浏览(470)

elasticsearch索引包含json,如下所示,仅显示相关元素

"geoLocation": { 
"coordinates": [ [ -90.66487121582031, 42.49201965332031 ], [ -90.66487884521484, 42.49202346801758 ], [ -90.6648941040039, 42.492034912109375 ], [ -90.66490936279297, 42.49203872680664 ], [ -90.66492462158203, 42.492042541503906 ], [ -90.6649398803711, 42.49204635620117 ], [ -90.66495513916016, 42.49205017089844 ], [ -90.66497039794922, 42.4920539855957 ], [ -90.66498565673828, 42.492061614990234 ], [ -90.66500854492188, 42.492061614990234 ], [ -90.66502380371094, 42.49207305908203 ], [ -90.6650390625, 42.4920654296875 ] ], 
"type": "linestring" 
},

生成Map的模板如下所示

PUT _template/template_1?include_type_name=true
{
  "index_patterns": ["metromind-its-alerts-day2-*"],
  "settings": {
    "number_of_shards": 2
  },
 "mappings": {
        "logs": {
            "properties": {
                "geoLocation": {
                    "type": "geo_shape"
                }
            }
        }
  }
}

生成的Map如下所示
显示地理位置类型的Map
当使用kibanaMap时,它会检测geo\u形状
用于渲染线条字符串的kibana贴图
注意:但是没有呈现任何字符串,请建议分辨率

wztqucjr

wztqucjr1#

线绳就在那里,在伊尔的杜布克,它只是在地球的尺度上特别小。
只需点击以下图标,elastic map将聚焦于此,您将看到:

相关问题