Skip to content

Commit 14f8ca2

Browse files
committed
feat:LBS搜搜:实现思路
1 parent bc8d4ab commit 14f8ca2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/posts/面试准备/LBS搜索.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ tags:
1515
```aiignore
1616
用户 → Redis GEO 筛选附近用户 → ES 排序(标签+距离+活跃时间) → 返回结果
1717
```
18+
标签相同个数按照从多到少排序,距离按照从近到远排序,活跃时间和当前时间的差
19+
从小到大排序,主要目标对象还是附近的人所以先用Redis筛选附近的人
1820
## 引入依赖
1921

2022
:warning: ES版本是8.18.2​

0 commit comments

Comments
 (0)