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

Various improvements to search with special phrases for Python frontend #3260

Merged
merged 5 commits into from
Nov 27, 2023

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Nov 27, 2023

  • Change SQL to not return duplicates of places. This was restricting the number of actual results returned to something well below the stated limit.
  • With near searches, order results by distance to the center of the place.
  • Avoid duplication in the list of categories in case where different languages transliterate to the same word token.
  • For near searches further restrict the list of places taken into account as being near to.
  • Avoid qualifier searches when the special term makes up a complete phrase (e.g. "Hotel, Vaduz" is read as "search a hotel in Vaduz" while "Hotel Vaduz" is read as "search a hotel named Vaduz")

@lonvia lonvia merged commit d8ed565 into osm-search:master Nov 27, 2023
8 checks passed
@lonvia lonvia deleted the improve-catgeory-search branch November 27, 2023 14:10
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.

1 participant