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

Do not run near queries on qualifier words #3290

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Jan 7, 2024

Qualifier words like hotel might sometimes appear in a query where a near search is meant. For example, 'hotels berlin' most like wants to have hotels in Berlin listed. These occasions are rare however ('hotel berlin' is already more likely to be a search for a hotel named Berlin, a true qualifier word). So there is too much potential for confusion (e.g. 'Rio Grande' read as 'river near Grande') for too little gain.

This disables the interpretation of a qualifier word as a near search completely. You can always use a near phrase like 'hotels in berlin' to achieve the same result when searching.

Fixes #3277.

There is too much potential for confusion (e.g. 'Rio Grande' read
as 'river near Grande') fir too little gain. Use near phrases
instead.
@lonvia lonvia merged commit 2592bf1 into osm-search:master Jan 7, 2024
9 checks passed
@lonvia lonvia deleted the near-vs-quaifier-words branch January 7, 2024 14:23
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.

proximity could get more weight
1 participant