pelias / pelias/api

autocomplete: cannot find place using its label

Open
#1,395 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

the document openstreetmap:venue:node/3691534194 has the following label:

"label": "Koh Lanta, Gothenburg, Sweden"

however, when searching for the same record using this label no results are returned:

/v1/autocomplete?text=Koh Lanta, Gothenburg, Sweden
no features

it's not clear why this is the case, requires some investigation.

note: this works correctly for /v1/search

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

Reproduce the /v1/autocomplete?text=Koh Lanta, Gothenburg, Sweden request for openstreetmap:venue:node/3691534194 and compare it with the working /v1/search request. Trace how the autocomplete path handles the document label; done means the label returns the expected feature without breaking existing autocomplete behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.