栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

使用logstash将CSV地理数据作为geo_point类型输入到elasticsearch中

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

使用logstash将CSV地理数据作为geo_point类型输入到elasticsearch中

问题在于,在

elasticsearch
输出中您为索引命名,
base_map_simple
而在模板中该
template
属性为
base_map_template
,因此在创建新索引时不会应用该模板。该
template
属性需要以某种方式匹配要创建的索引的名称,以使模板生效。

如果将后者简单地更改为,它将起作用

base_map_*
,例如:

{  "template": "base_map_*",  <--- change this  "order": 1,  "settings": {    "index.number_of_shards": 1  },  "mappings": {    "node_points": {      "properties": {        "location": {          "type": "geo_point"        }      }    }  }}

更新

确保首先删除当前索引以及模板。

curl -XDELETE localhost:9200/base_map_simplecurl -XDELETE localhost:9200/_template/logstash


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/413044.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号