MapColonies / MapColonies/geocoding
`disable_fuzziness: true` in `/search/location/query` (MAPCO-4782)
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず `disable_fuzziness=true` を指定して `/search/location/query` に対するリクエストを再現し、次にその route が Elasticsearch の `function_score` クエリをどのように構築しているかを追跡します。この issue では非完全一致の結果を返すべきかどうかが定められていないため、クエリの仕組みを変更する前に期待される動作を決定する必要があります。このリクエストに対して合意した動作が実装され、検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- elasticsearch, typescript
- 領域
- api, backend, search
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100