当前位置:网站首页>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
边栏推荐
- Acwing / 2004. Mauvaise écriture
- Why did Yanjing Beer come here?
- The process of making wooden barrels with 3DMAX software: a three-step process
- Hongmeng learning notes: creating layouts using XML
- 直接选择排序和快速排序
- keil debug查看变量提示not in scope
- 【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
- Esp8266 & sg90 steering gear & Lighting Technology & Arduino
- 【2022黑马程序员】SQL优化
- Wan Yin revealed that he was rejected by MIT in this way: "the department doesn't like you". He confronted the principal and realized
猜你喜欢

Meta universe is over, Web 3.0 will be fooled again?

Following the last minor upgrade of nodemcu (esp8266)
![Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]](/img/cd/c8be09eca7b41407b0ca1f3b4f3fe8.jpg)
Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]

Ctfhub web - divulgation d'informations - traversée du Répertoire

【一起上水硕系列】Day 5

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
![[Shangshui Shuo series] day 5](/img/83/28834addd8198d4bcdc718eccf5754.png)
[Shangshui Shuo series] day 5

Keil debug view variable prompt not in scope

Ht513 I2S input 2.8W mono class D audio power amplifier IC

Cloning and importing DOM nodes
随机推荐
Qcom--lk phase I2C interface configuration scheme -i2c6
Direct select sort and quick sort
How to realize the stable output of 3.3v/3.6v (1.2-5v) voltage of lithium battery by using the voltage rise and fall chip cs5517
Understand ZBrush carving software and game modeling analysis
Difference between rest and WebServices
Coffee script unmatched outent error
Jameswebb Space Telescope goes into operation to help study interstellar objects
アルマ / 炼金妹
Hongmeng learning notes: creating layouts using XML
How to find happiness in programming and get lasting motivation?
fastadmin 联级清空数据
sin(a+b)=sina*cosb+sinb*cosa的推导过程
Analysis of common interview questions in redis
【一起上水硕系列】Day 4
Which securities company do you want to buy stocks to open an account faster and safer
Cs8126t 3.1w mono ultra low EMI unfiltered class D audio power amplifier IC
燕京啤酒何以至此?
Why did Yanjing Beer come here?
Ctfhub web - divulgation d'informations - traversée du Répertoire
Derivation of sin (a+b) =sina*cosb+sinb*cosa