[英]Geo location from mongodb to elasticsearch
mongo-connector is used to push the data from server which have geo location as mongo-connector 用于从具有地理位置的服务器推送数据
"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"数据正在填充,但kibana未在“瓷砖地图”上显示任何数据
Is there anything i am missing有什么我想念的吗
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.请在github 中查看以进行进一步阅读。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.