当前位置:网站首页>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
边栏推荐
- How to configure log4j to only keep log files for the last seven days?
- The five minute demonstration "teaches" actors to speak foreign languages and can seamlessly switch languages. This AI dubbing company has just received a round a financing of 20million US dollars
- sin(a+b)=sina*cosb+sinb*cosa的推导过程
- [learn shell programming easily]-5. Plan tasks
- [ros2] Why use ros2? Introduction to ros2 system characteristics
- How to find happiness in programming and get lasting motivation?
- Cs8126t 3.1w mono ultra low EMI unfiltered class D audio power amplifier IC
- [ACNOI2022]王校长的构造
- Controlling volume mixer
- [learn FPGA programming from scratch -43]: vision chapter - technology evolution of chip design in the post Moore era -2- evolution direction
猜你喜欢

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

Three laws of go reflection

How to deploy locally developed SAP ui5 applications to ABAP servers

Error reported during vivado simulation common 17-39

R & D thinking 07 - embedded intelligent product safety certification required

Design of PWM breathing lamp based on FPGA

ACWING/2004. 錯字

【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》

Capable people never complain about the environment!
![[core content and derivation] the mystery of human memory system may be just like this](/img/7c/98f27bb55a1a3b74c0ed8fd7fd2cc5.jpg)
[core content and derivation] the mystery of human memory system may be just like this
随机推荐
Are these old system codes written by pigs?
Introduction to sap ui5 tools
sin(a+b)=sina*cosb+sinb*cosa的推导过程
[轻松学会shell编程]-5、计划任务
[ACNOI2022]王校长的构造
The most basic difference between clustering and classification.
Keil debug view variable prompt not in scope
You can see the classification of SQL injection. SQL injection point /sql injection type /sql injection has several /sql injection point classifications
Message queue table structure for storing message data
Hongmeng learning notes: creating layouts using XML
Derivation of sin (a+b) =sina*cosb+sinb*cosa
Error reported during vivado simulation common 17-39
Derivation of sin (a-b) =sina*cosb-sinb*cosa
Unity获取资源路径
New research shows that human ability to make decisions and process information does not decline until the age of 60
Your local changes to the following files would be overwritten by merge: . vs/slnx. sqlite
Query process of MySQL secondary index
Unity get resource path
Who can teach me how to learn SCM, what to learn first and how to get started?
Kubernetes cluster dashboard & kuboard installation demo