online search: results not appearing because only name and name:<GUI language> are searched

Georg D shared this problem 21 days ago
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.

388f38b324abf4fe79f0b0e1ba12f0f4203e4b454386fbd3432e1dcf12815369

Replies (4)

photo
1

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.

0131866e29a21e903534494a3bed246a24987c5fa0f0d18e6788bcca7578b15a

ffce3c21f2ee0e04a9e75c4b5ebed64c8baa1c4117309d3a186e71e2590ddba4

5bc7aee0821121d53c649e4a9f30b69a333bad6f844f15db4ab4b56c2d016da1

This comment is in trash! Restore
photo
1

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.

This comment is in trash! Restore
photo
1

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 order to solve the situation I was in, a user must first know that only local official name and the name in Locus' GUI language are searched. How shall a user know this? The GUI does not tell and the search's burger menu has no entry "documentation", so users can only learn by manual research in the browser – that's quite far away. Plus, I did not find in https://docs.locusmap.app/doku.php/manual:user_guide:functions:search which languages are searched.
  • That only those 2 names are searched means that users must switch Locus GUI language back and forth all the time to get all relevant search results: For searching for my travel to China, I must switch Locus to EN because I can't write CN common name, so only one language name is usable for me, an EN names are pre-dominant in China. Then I search something in France (30km away from my home town) and as a German, I know the DE names of cities etc. much better than the FR names, but only local name (=FR) and Locus' GUI language (=EN) are searched, so I need to switch Locus GUI to DE. Then I search something for the weekend trip 2 hours away in Switzerland, which has 3 official languages (DE+FR+IT) depending on region, so I need to try & error which of those languages produces search results, again switching Locus' GUI language. I do not consider this as easy to understand or as user friendly.
  • How shall a user tell apart "POI/way is non-existing in OSM" from "name is just not maintained in current GUI language" (but which languages?) from "name is translated differently"? For example, the viewpoint "Dresser" 300m SE of Moon Hill carries no DE name, so the solution you suggested for Moon Hill (i.e. search for DE translation "Anzieher") does not work. One gets 0 results. The user dos not know whether user can stop searching because POI is not in OSM, or user shall switch Locus GUI to another langue – and if so, which language, because user don't know wheter the POI has name in EN xor ES xor RU xor... until user already found the desired POI/way, but then, user does not need search any more.
  • That only those 2 names are searched has especially heavy impact when users can't write the common names in local language + characters, e.g. for most Europeans in regions not using Latin or Cyrillic alphabet like Arabian countries, China, Korea, Japan,...
    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.
  • I can set the OpenAndroMaps of China only to local/CN or EN, not DE, so I cannot configure to see the same language that search uses. Hence, search does not find what is shown in the map – unlikely that any user considers this a feature despite it's a result of a feature! Even if LoMaps of China could be configured to DE, one will not do that because 1) EN is the European language everyone uses and which is much better maintained in OSM, so DE is simply irrelevant in CN, and 2) LoMaps cannot be downloaded as Locus store is not accessible from Chinese internet – while OAM is. Side note: Locus search and LoPoints are accessible in CN, http://www.openstreetmap.org, CoMaps download servers any many other OSM services are not, so alternatives are lacking.

Idea:

  • At the bottom of search results, add a second line "Results for common name and <Locus GUI language> – change <gears icon>" where "change <gears icon>" is formatted as link.
  • When user clicks the link, a screen appears with a button "Default" to quickly reset any custom settings and below a list of checkboxes for the most widely used name types of https://wiki.openstreetmap.org/wiki/Names#Name_keys plus names in different languages. I imagine the following list: common name in local language + characters (checkbox is ticked), official name, short name, local name, regional name, alternative name, old name, name in <Locus' GUI language> (checkbox is ticked), name in <OS language>, then language names alphabetically sorted (e.g. CN, DE, EN, FR,...).
    At the end, OK and Cancel.
  • After user changed anything, the line below the search results will change to "Results for custom set of names – change <gears icon>".
  • If not even one page of search results exists, a button "Search this in more name types" appears that serves as a shortcut to manually broaden and afterwards reducing the amount of searched names. In first iteration, all name types (loc/official/old/...) plus GUI + OS languages are used, if still few search results, in 2nd iteration, all languages with same characters as GUI + OS language are used (so for EN Locus and DE OS, all languages using latin characters, so ES+FR+CZ+IT+...)

Benefits of the idea:

  • Users are made aware what name tags are considered – so they can understand why something does not appear, which is the first step to solve the issue
  • Users can use Locus GUI in a language they really master and still search in other languages – so no more the bad choice between "bad search results or hard to use GUI"
  • Multiple languages can be searched at once – easy to get more search results on request only, and comfortable solution for multi-language use cases, e.g. Switzerland, compared to current need to change GUI languages back & forth.
  • Also alternative names (loc_name etc.) can be searched – impossible until now
  • undesired names/languages can be excluded – reducing false positives, e.g. when I use Locus in EN for contributing at help.locusmap.eu that does not mean I'm interested in name:en results within Germany/France/Switzerland

This comment is in trash! Restore
photo
1

I want to mention that more than the 2 mentioned names must be crawled, because searching "schwangere Auster" finds https://www.openstreetmap.org/way/1065864180 despite the term is neither name nor name:de.

For my idea, I'd like to add a checkbox for nickname, because this is obviously also often used.

This comment is in trash! Restore
photo
1

@Radim: Can you change the title to "online search for places and addresses: expected results not appearing because only name and name:<GUI language> are crawled"? I do not have required rights and that new title would much better reflect the content 🙂

This comment is in trash! Restore
photo
photo
1

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!

This comment is in trash! Restore
Leave a Comment
 
Attach a file