pelias / pelias/api

Indexing and normalisation of Cyrillic characters

Open
#1,636 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
259
Forks
168
Avg merge
6h 15m
Merged PRs (30d)
1

Description

Describe the bug
When searching for the address ("Олега Оникієнка вулиця 77а") of this OSM place no result are returned. The issue seems to be caused by the fact the the address is indexed with Cyrillic "a". If the query search contains the Cyrillic character "a", the above address is returned.

Steps to Reproduce

Steps to reproduce the behavior:
No results returned when searched with Latin Small Letter A: pelias.github.io
Result returned when searched with Cyrillic Small Letter A: pelias.github.io

Expected behavior
Expected the address to be returned when using Latin character

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two autocomplete requests linked in the issue, comparing the Latin and Cyrillic character results. Trace the API's indexing and normalization path to find where these characters are handled differently. Done means the address is returned for the Latin-character query and the behavior has regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.