online search: results not appearing because only name and name:<GUI language> are searched
Not processed
Dear Radim, in Locus 4.36.1 searching for "Moon Hill" does show results that are thousands km away despite a "Moon Hill" is in cycling distance and contained in OSM (because it's shown in the map and as LoPoint).
Android 16 and Locus in DE, my position maybe 5km north of desired result https://www.openstreetmap.org/node/1364118179 which has name:en=Moon Hill (so it's an exact match) and also name:de=Mondberg. So it may have to do with languages, i.e. because the POI contains Locus' language (DE) which is no search result, the other languages of the POI are ignored, whereas for other POIs that do not carry DE name at all, the other languages are considered.

The same problem
Hi Georg. How languages are used in this search: Only 2 languages are relevant. 1: "local" language (unspecified in osm), in this case in local alphabet (Chinese). 2: language specified by client. So if your language in Locus is "de", "mondberg" must work, "moon hill" not. If your language in Locus is "en", "moon hill" must work. And this is exactly what I observe both in Locus Android and Locus Web. I was hesitating to use "en" always, but decided not to - (false positives for short names). Notes: position of the map is used, so If your map is still in Europe, those American places may be seen more relevant. The distance on the right is users physical distance to result. If this is the case: I am not sure if using "en" always will be good idea in the simple, naive approach (because of false positives). But there is this exact situation when all results are far away, or not relevant really -- then another round of search should happen with another set of candidates. (search for typos, search in other languages...). That is a reasonable think to do, but this simple system is not that advanced yet.
Hi Georg. How languages are used in this search: Only 2 languages are relevant. 1: "local" language (unspecified in osm), in this case in local alphabet (Chinese). 2: language specified by client. So if your language in Locus is "de", "mondberg" must work, "moon hill" not. If your language in Locus is "en", "moon hill" must work. And this is exactly what I observe both in Locus Android and Locus Web. I was hesitating to use "en" always, but decided not to - (false positives for short names). Notes: position of the map is used, so If your map is still in Europe, those American places may be seen more relevant. The distance on the right is users physical distance to result. If this is the case: I am not sure if using "en" always will be good idea in the simple, naive approach (because of false positives). But there is this exact situation when all results are far away, or not relevant really -- then another round of search should happen with another set of candidates. (search for typos, search in other languages...). That is a reasonable think to do, but this simple system is not that advanced yet.
I don't think language related. I use English and sometimes I see these silly search results from other side of the planet. It happens less than older releases.
I don't think language related. I use English and sometimes I see these silly search results from other side of the planet. It happens less than older releases.
Hi Radim, thank you for your helpful post.
I want to confirm that Mondberg is found also in my installation, so search works as intended for this example.
I did think a while on the topic. I came to the conclusion the question "what names to search?" is a major root cause for much unhappiness with search results. I believe the best way is to empower users to understand & configure which names are searched. Now, knowing that only 2 names are searched, I understand the unexpected behavior I observed in the past.
I understand you don't want to search "too many" names – many irrelevant results are also not helpful. At the same time some other thoughts from user perspective about current approach; only read details if bold text is not clear/detailed enough 🙂
In some regions, diverse European languages are used, but one OSM POI usually carries 1-3 languages. So to which of the languages shall user set Locus GUI?
In some regions, one European language is massively dominant, e.g. in CN, if any European language is used at all, then it's nearly always EN, in Tunisia FR, etc. In order that search finds names that people tell and that are mapped in OSM, users need to switch Locus GUI to the European language dominant in the region. That's feasible for me with EN, but my French is not good enough to use Locus GUI in FR, so what to do in Tunisia? Bad search results or not being able to use GUI? Here, we clearly run into a structural limitation of current search design. And it does hit suddenly when users arrive in travel destination, when they would like to focus on travel, not resolving software issues.
Idea:
At the end, OK and Cancel.
Benefits of the idea:
Hi Radim, thank you for your helpful post.
I want to confirm that Mondberg is found also in my installation, so search works as intended for this example.
I did think a while on the topic. I came to the conclusion the question "what names to search?" is a major root cause for much unhappiness with search results. I believe the best way is to empower users to understand & configure which names are searched. Now, knowing that only 2 names are searched, I understand the unexpected behavior I observed in the past.
I understand you don't want to search "too many" names – many irrelevant results are also not helpful. At the same time some other thoughts from user perspective about current approach; only read details if bold text is not clear/detailed enough 🙂
In some regions, diverse European languages are used, but one OSM POI usually carries 1-3 languages. So to which of the languages shall user set Locus GUI?
In some regions, one European language is massively dominant, e.g. in CN, if any European language is used at all, then it's nearly always EN, in Tunisia FR, etc. In order that search finds names that people tell and that are mapped in OSM, users need to switch Locus GUI to the European language dominant in the region. That's feasible for me with EN, but my French is not good enough to use Locus GUI in FR, so what to do in Tunisia? Bad search results or not being able to use GUI? Here, we clearly run into a structural limitation of current search design. And it does hit suddenly when users arrive in travel destination, when they would like to focus on travel, not resolving software issues.
Idea:
At the end, OK and Cancel.
Benefits of the idea:
Hi Georg, I also have a few remarks, in no particular order or sorted relevance. Some of them deserve more backing data by us though:
- I am not saying this case is an edge case, but majority of requests are simple: German in Germany, Czech in Czech Republic. On the other hand, exploring countries where the language barrier is a thing is what we want people to do with Locus.
- There is also very real problem with misspellings: Do you know how to spell "Nærøyfjord" in any language? People have no clue how to spell "accommodation". (I know just because I memorized it). Fuzzy fallback is also not in place and that is certainly a big drawback.
- There is difference between places and POIs - both "semantic" and practical - That segment of online search in Locus is done by Graphopper, and I have not much control over that segment (although GH support is fantastic). So what we talk here is just POIs.
- back to languages: suggested user configuration is UX a bit unexpected, imho, but possible, not up to us to decide. I tend to cascade-style solution.
- measuring relevance of search results is not an easy task. Detecting utter nonsense is much easier. ("moon hill" in USA is easy to detect suspicious result).
- building pre-configured sets of languages for localities is time (and ai tokens) consuming task, but basically easy. (If your current map is full in Italy, "it", "en" can be such a set)
So how would I go about it? Cascade.
Do what we currently do first (search using 2 or 3 languages). Rank results using distance, importance, syntactic similarity. If the scores are not good enough, go for another round. This time include pre-configured, locality based languages. Re-rank again, all. If the scores are still not good enough, go for another round. This time search for semantic similarities (fuzzy search, "hopital st Mary" is "hospital of saint Mary"). Re-rank again, all.
It is a bit more complex, because "hotel" is not just a place called "hotel occidental", but also a place called just "occidental" which happens to be a hotel.
Configuration by user is possible, but I tend towards a ranking-based cascade.
This way there will be just one step for majority of cases, and slow, cascade search for minority of cases.
As usually, by the end of the day, this problem rather boils down to ranking (relevance measuring) problem.
Thank for your attention!
Hi Georg, I also have a few remarks, in no particular order or sorted relevance. Some of them deserve more backing data by us though:
- I am not saying this case is an edge case, but majority of requests are simple: German in Germany, Czech in Czech Republic. On the other hand, exploring countries where the language barrier is a thing is what we want people to do with Locus.
- There is also very real problem with misspellings: Do you know how to spell "Nærøyfjord" in any language? People have no clue how to spell "accommodation". (I know just because I memorized it). Fuzzy fallback is also not in place and that is certainly a big drawback.
- There is difference between places and POIs - both "semantic" and practical - That segment of online search in Locus is done by Graphopper, and I have not much control over that segment (although GH support is fantastic). So what we talk here is just POIs.
- back to languages: suggested user configuration is UX a bit unexpected, imho, but possible, not up to us to decide. I tend to cascade-style solution.
- measuring relevance of search results is not an easy task. Detecting utter nonsense is much easier. ("moon hill" in USA is easy to detect suspicious result).
- building pre-configured sets of languages for localities is time (and ai tokens) consuming task, but basically easy. (If your current map is full in Italy, "it", "en" can be such a set)
So how would I go about it? Cascade.
Do what we currently do first (search using 2 or 3 languages). Rank results using distance, importance, syntactic similarity. If the scores are not good enough, go for another round. This time include pre-configured, locality based languages. Re-rank again, all. If the scores are still not good enough, go for another round. This time search for semantic similarities (fuzzy search, "hopital st Mary" is "hospital of saint Mary"). Re-rank again, all.
It is a bit more complex, because "hotel" is not just a place called "hotel occidental", but also a place called just "occidental" which happens to be a hotel.
Configuration by user is possible, but I tend towards a ranking-based cascade.
This way there will be just one step for majority of cases, and slow, cascade search for minority of cases.
As usually, by the end of the day, this problem rather boils down to ranking (relevance measuring) problem.
Thank for your attention!
Replies have been locked on this page!