feat(search): 实现用户搜索昵称高亮与粉丝数格式化- 添加昵称高亮字段 highlightNickname 到 SearchUserRspVO

- 修改粉丝总数字段类型为 String,支持格式化显示
- 引入 NumberUtils 工具类,实现数字转“万”单位格式
- 配置 Elasticsearch 查询高亮规则,支持昵称关键词高亮
- 新增 mergeHitToRspVO 方法,合并原始数据与高亮结果
- 优化搜索请求构建逻辑,增强可读性与扩展性
This commit is contained in:
2025-11-01 13:50:18 +08:00
parent 4e00542371
commit 4b13e52a29
4 changed files with 140 additions and 42 deletions

View File

@@ -285,6 +285,6 @@ POST http://localhost:8092/search/user
Content-Type: application/json
{
"keyword": "憨",
"keyword": "憨",
"pageNo": 1
}