[活动推荐] ECUG For Future - 技术人的年度盛会
活动 • medcl 发表了文章 • 1 个评论 • 3322 次浏览 • 2019-12-21 22:37
【限量门票】ECUG技术人的年度盛会,听谷歌、阿里、七牛云、CODING等大佬分享干货。http://hdxu.cn/JH9N4
【亮点满满】微服务拆分的技术实践、基于区块链的可信计算、阿里巴巴Kubernetes应用管理实践中的经验与教训、ServiceMesh在网易的落地关键点总结、构建快速应用开发的套路……2020年1月4日-5日,杭州见~
活动链接:http://hdxu.cn/JH9N4
更多活动介绍:
社区日报 第819期 (2019-12-21)
社区日报 • bsll 发表了文章 • 0 个评论 • 2001 次浏览 • 2019-12-21 17:47
1.nested结构增删改查示例
[http://t.cn/AikfnSuI](http://t.cn/AikfnSuI)
2.用“架构”的思维看待ES
[http://t.cn/AikflU49](http://t.cn/AikflU49)
3.Kibana多用户创建及角色权限控制
[http://t.cn/AikfnSuX](http://t.cn/AikfnSuX)
Elasticsearch:使用function_score及soft_score定制搜索结果的分数
回复Elasticsearch • liuxg 发起了问题 • 1 人关注 • 0 个回复 • 1732 次浏览 • 2019-12-21 17:03
请教下, _count怎么批量统计?
Elasticsearch • XZ 回复了问题 • 2 人关注 • 2 个回复 • 1813 次浏览 • 2019-12-28 15:50
Elasticsearch:Elasticsearch中的refresh和flush操作指南
回复Elasticsearch • liuxg 发起了问题 • 1 人关注 • 0 个回复 • 2589 次浏览 • 2019-12-21 10:48
高亮问题:部分匹配却高亮了整体
Elasticsearch • 森 回复了问题 • 3 人关注 • 2 个回复 • 4176 次浏览 • 2019-12-21 14:01
mutate add_field 在aggregate 的task_id 拿不到值
回复Logstash • linzero 发起了问题 • 1 人关注 • 0 个回复 • 2116 次浏览 • 2019-12-20 18:24
有没有人注意过这个问题
Elasticsearch • Ombres 回复了问题 • 2 人关注 • 1 个回复 • 1221 次浏览 • 2019-12-20 16:57
两个50G的segment中有80%的delete文档,怎么把这两个segment合并,大小最好是20G
Elasticsearch • Charele 回复了问题 • 2 人关注 • 2 个回复 • 1210 次浏览 • 2019-12-20 16:50
使用Rally 进行elasticsearch 集群压测, 如何使用 rally docker 构建分布式??
回复Elasticsearch • 匿名用户 回复了问题 • 1 人关注 • 1 个回复 • 1985 次浏览 • 2019-12-20 16:17
集群多节点的数据存储未均匀分配
Elasticsearch • caizhongao 回复了问题 • 3 人关注 • 3 个回复 • 1661 次浏览 • 2019-12-20 18:34
社区日报 第818期 (2019-12-20)
社区日报 • laoyang360 发表了文章 • 0 个评论 • 1299 次浏览 • 2019-12-20 12:25
1、Elasticsearch命名实体识别实现
http://t.cn/AikhCWV6
2、从 Lucene 到 Elasticsearch
http://t.cn/AikhCTOb
3、Elasticsearch一系列好文收藏
http://t.cn/AikhCRyO
编辑:铭毅天下
归档:https://ela.st/cn-daily-all
订阅:https://ela.st/cn-daily-sub
沙龙:https://ela.st/cn-meetup
【央行-网联清算有限公司】【北京】高薪招聘ElasticSearch工程工程师
回复求职招聘 • 匿名用户 回复了问题 • 2 人关注 • 2 个回复 • 3810 次浏览 • 2020-01-20 10:50
GeoIP解析IP地理位置
Logstash • ziyou 发表了文章 • 0 个评论 • 10194 次浏览 • 2019-12-20 10:09
我们在对IP进行解析的时候使用maxmind提供的提供的GeoLite2,这个是maxmind提供的GeoIP2的免费版本,其准确率稍低于付费版本,可以很好的对IP进行地域解析,可以满足我们的需求。
GeoLite2有提供各种版本的API供开发者使用,我们就主要是用的是java版本的API。具体步骤如下:1、下载maxmind DB数据库
在maxmind官网下载需要的IP解析数据库,里面有两种数据库,一是国家数据库,一是城市数据库,我们使用的基本都是城市数据库,下载选择二进制格式。网页地址:GeoLite2 开源数据库
2、安装软件包,建议使用maven安装此软件包,将以下依赖添加到pom.xml中。
<dependency>
<groupId> com.maxmind.geoip2 </groupId >
<artifactId > geoip2 </artifactId >
<version >2.12.0</version >
</dependency >
3、使用// A File object pointing to your GeoIP2 or GeoLite2 database
System.out.println(GeoIP2Test.class.getClassLoader().getResource("GeoLite2-City.mmdb").toString().replaceFirst("/",""));
File database = new File(GeoIP2Test.class.getClassLoader().getResource("GeoLite2-City.mmdb").toString().replaceFirst("file:/",""));
// This creates the DatabaseReader object. To improve performance, reuse
// the object across lookups. The object is thread-safe.
DatabaseReader reader = new DatabaseReader.Builder(database).build();
InetAddress ipAddress = InetAddress.getByName("128.101.101.101");
// Replace "city" with the appropriate method for your database, e.g.,
// "country".
CityResponse response = reader.city(ipAddress);
Country country = response.getCountry();
System.out.println(country.getIsoCode()); // 'US'
System.out.println(country.getName()); // 'United States'
System.out.println(country.getNames().get("zh-CN")); // '美国'
Subdivision subdivision = response.getMostSpecificSubdivision();
System.out.println(subdivision.getName()); // 'Minnesota'
System.out.println(subdivision.getIsoCode()); // 'MN'
City city = response.getCity();
System.out.println(city.getName()); // 'Minneapolis'
Postal postal = response.getPostal();
System.out.println(postal.getCode()); // '55455'
Location location = response.getLocation();
System.out.println(location.getLatitude()); // 44.9733
System.out.println(location.getLongitude()); // -93.2323