-
Notifications
You must be signed in to change notification settings - Fork 287
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
Add special phrase searching like nominatim #557
Comments
It's technically possible but we are a long way off from a practical implementation. |
Thanks for the comments. This is just my humble suggestion. It would be great if photon can consider particular phrases to prioritize searching. |
@lonvia we are thinking about implementing something similar to what is being discussed in this issue. Basically when searching or ordering the results, we would like some Any idea or recommendation on how to implement this or where to look? Is it better to perform this when querying, scoring or returning the data? Is it something worth submitting a PR to the photon repo? Thank you |
@kenseii It sounds like you are looking rather for a static boost by OSM type, i.e. the boost would be independent from the actual query. This issue is more about searching by keywords. 'tokyo station' would boost train stations, 'tokyo hotel' would boost hotels. |
@lonvia In order to make the search results dynamically boosted depending on the e.g: if i search for Tokyo station, i would like to boost the results that have "station" as the the reason why we think synonyms are important is because the search query might hold a useful key that is not an osm_value e.g searching with Narita airport: e.g searching with Narita hotel: We think that boosting based on dynamic |
If you go down this road, you probably have to actually remove the word you used for a keyword from the query before matching against the document because the keyword and its synonyms might not show up in the name at all and you don't have a full match anymore. Or you have to add the OSM key/value as a keyword to the collector but that has its own disadvantages. I'm currently in the process of experimenting with this stuff for a project, including experimenting with synonyms. We will see what comes out of this. |
Actually we are planning to use add the By doing that we can boost based on whether a query matches that field.
Glad to hear that, is this going to be open source? |
They are English words that will interfere with searching. But it can work if you add a a symbolic replacement instead.
Yes. |
I just found this article in nominatim website.
I think it might be better if we can search POI by key from Nominatim/Special Phrase. For instance, search
bank
type only at certain city.I am not very sure whether it is possible technically. What do you think?
The text was updated successfully, but these errors were encountered: