当前位置:网站首页>Efficient exploration | an application practice of ES geographical location query
Efficient exploration | an application practice of ES geographical location query
2022-06-25 07:04:00 【The stars are falling】
Recently participated in a development requirements review , To realize a function of querying data according to longitude, latitude and distance .
At first, I heard that it was necessary to do this , There's no clue .
Just when I want to implement the method , An architecture boss confidently said that it can be achieved through the high moral map , However, the range of the query is not a circle , It's a rectangle .emmm... The product gritted its teeth and agreed .
After the requirements review , Manage the background and web According to this direction , Floating in the sea of the Internet , Finally, find an implementation method . Copy 、 debugging 、 Release , After a fierce operation , The function is tested .
No accident , When it comes to testing , porous . Later, I found , When a person's latitude and longitude , Locate other cities , Then query the data of a certain distance range , Difference between 50-100 km , The result page actually has data .
Can't , Can only be re implemented ...
Later, a colleague said es It has the function of querying according to longitude and latitude , I'll look for it on the Internet api, It turned out that . After deployment with the O & M colleagues again and again 、 After joint commissioning , Function realized . The following is the process of configuration :
1.es edition :
2. Database version :

3. Database configuration sql:

4. Key conversion configurations :

5. Data output to es:

6. Mapping template configuration :

7.kibnan Inquire about :

thus , Function realization , A transmitted longitude and latitude is a dot ,200KM All the data within will be found out
notes : longitude: longitude coordinate: dimension
边栏推荐
- 百度地图——入门教程
- レ / leilei
- 聚类和分类的最基本区别。
- Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
- Kubernetes core components etcd details
- Atomic alpha development board -- SD card and EMMC burning tool
- What is cloud primordial?
- joda.time获取日期总结
- The significance and proof of weak large number theorem
- 有能力的人从不抱怨大环境!
猜你喜欢

In depth inventory: 23 vscode plug-in artifacts that improve development efficiency and aesthetics

sin(a+b)=sina*cosb+sinb*cosa的推导过程
![[learn shell programming easily]-5. Plan tasks](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[learn shell programming easily]-5. Plan tasks

Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)

CTFHub-Web-信息泄露-目录遍历

From file system to distributed file system

Qcom--lk phase I2C interface configuration scheme -i2c6
![[ros2] Why use ros2? Introduction to ros2 system characteristics](/img/d8/8906e01f9715328f3a05a51ab82fb1.png)
[ros2] Why use ros2? Introduction to ros2 system characteristics

Are you still doing the dishes yourself? Teach you how to make dishwasher controller with single chip microcomputer

深入解析 Apache BookKeeper 系列:第三篇——读取原理
随机推荐
[轻松学会shell编程]-5、计划任务
Why did Yanjing Beer come here?
Ht8513 single lithium battery power supply with built-in Dynamic Synchronous Boost 5W mono audio power amplifier IC solution
The process of making wooden barrels with 3DMAX software: a three-step process
Report on development status and investment strategy recommendations of global and Chinese graphite polystyrene board industry 2022-2028
You can see the classification of SQL injection. SQL injection point /sql injection type /sql injection has several /sql injection point classifications
Direct select sort and quick sort
cos(a-b)=cosa*cosb+sina*sinb的推导过程
Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite
CTFHub-Web-信息泄露-目錄遍曆
[learn shell programming easily]-5. Plan tasks
Blue Bridge Cup SCM module code (matrix key) (code + comments)
【2022黑马程序员】SQL优化
Design of PWM breathing lamp based on FPGA
Coffee script unmatched outent error
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
[ros2] Why use ros2? Introduction to ros2 system characteristics
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
Self adjustment process of MySQL index tree when adding data
Are these old system codes written by pigs?