Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering of extra tags #594

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

FaFre
Copy link

@FaFre FaFre commented Jul 7, 2021

Draft PR for filtering of extra tags, related to #592.

So far it only enables filtering on the existence of keys inside the extra-tag object. Extra tags has been introduced via #576.

Example: http://localhost:2322/api?q=monaco&extra_key=wikidata&extra_key=wikipedia
Will only return elements with wikidata or wikipedia tags in extra. Behavior is similar to osm_key.

ToDo:

  • So far only wikipedia and wikidata gets indexed in elastic, because I don't know how to make it dynamic for all properties inside extra. If the mapping has to get done explicitly, all the extra tags can be found here: https://taginfo.openstreetmap.org/projects/nominatim#tags
  • No tests has been written yet (I'm not a java developer and don't want to deal with the tests for now...)

@phamtai97
Copy link

Any update PR? We need to your feature to query by extra tags because we has add some tags to extra-tag and want to search by it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants