`disable_fuzziness: true` in `/search/location/query` (MAPCO-4782)
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- elasticsearch, typescript
调研方向
首先使用 disable_fuzziness=true 重现对 /search/location/query 的请求,然后跟踪该路由如何构建其 Elasticsearch function_score 查询。该 issue 没有确定是否应返回非精确结果,因此必须先决定预期行为,再更改查询机制;对于此请求,实现并验证约定的行为后,才算完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
For /search/location/query when disable_fuzziness: true it still produces response that do not match the exact query.
We need to decide expected behavior in this particular route.
To Reproduce
Steps to reproduce the behavior:
- run the project.
- send request to
/search/location/querywithdisable_fuzziness: trueand a query that won't produce exact match likeairport. For example:
curl --location 'http://localhost:8080/search/location/query?query=airport%2C%20los%20angele&disable_fuzziness=true'
Expected behavior
For the example above, i'm not sure if we should produce a result.
Additional context
Currently, the query is based on ElasticSearch's function_score. If we want to really support disable_fuzziness: true, we need to rewrite the query mechanism.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MapColonies/geocoding 的其他 Issue
-
Location query - reverse search (lat-lon to location)可能已有人在做 @NivGreenstein 于 676 天前认领。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 25/100
MapColonies/geocoding#54 ·
-
Add new `SUB_TYPE` field to `type: ITEM` (MAPCO-5084)可能已有人在做 @NivGreenstein 于 686 天前认领。 未关闭enhancement
难度 3/5 1-2 天 新手友好度 25/100
MapColonies/geocoding#47 ·
-
bug
难度 3/5 1-2 天 新手友好度 45/100
MapColonies/geocoding#44 ·
-
Refactor
难度 3/5 1-2 天 新手友好度 48/100
MapColonies/geocoding#43 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
MapColonies/geocoding#33 ·
查看 MapColonies/geocoding 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
openzim/mwoffliner#2933 ·
维护者通常 1 天内回复
-
Use the README category name for website links and submissions可能已有人在做 @dajiaohuang 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
birobirobiro/awesome-shadcn-ui#647 ·
维护者通常 2 天内回复
-
check:passed streams:add
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
Urigo/accounter-fullstack#4604 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复