0

mongo-connector is used to push the data from server which have geo location as

 "location":{
    "coordinates" : {
        "lon":-77.03653,
        "lat": 38.897676
      }
  }

changed the properties of location as

"properties" :{
      "location" :{
          "type": "object",
          "properties" :{
              "coordinates": {
                  "type" : "geo_point",
                  "geohash": "true",
                  "geohash_prefix": "true"
              }
           }
      }
}

data is getting populated but kibana is not displaying any data on "tile map"

Is there anything i am missing

4

1 回答 1

1

As it is mentioned Geo-points cannot be automatically detected with dynamic mapping. Mapping of the data need to be created before inserting data to the database.

curl -XPOST :9200/databasename -d'{
    "mappings": {
      "tablename": {
        "properties": {
          "geojson_field": {"type": "geo_point"}
        }
      }
    } }'

please check in the github for furthur reading.

于 2015-03-18T07:17:34.320 回答