Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`disable_fuzziness: true` in `/search/location/query` (MAPCO-4782)

未关闭
#28 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
elasticsearch, typescript
领域
api, backend, search

调研方向

首先使用 disable_fuzziness=true 重现对 /search/location/query 的请求,然后跟踪该路由如何构建其 Elasticsearch function_score 查询。该 issue 没有确定是否应返回非精确结果,因此必须先决定预期行为,再更改查询机制;对于此请求,实现并验证约定的行为后,才算完成。

由索引模型根据 Issue 内容生成。

描述

bug In Design

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:

  1. run the project.
  2. send request to /search/location/query with disable_fuzziness: true and a query that won't produce exact match like airport. 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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MapColonies/geocoding 的其他 Issue

查看 MapColonies/geocoding 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。