This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

nominatim adress lookup problem (fuzzy search)

0

Hi,

we have some problems with our nominatim search.

we have updated our europe dump to the latest version und used the latest nominatim version 4.0.1

address example: Luisenhöhe 2, 4963 St. Peter am Inn

https://nominatim.openstreetmap.org/search.php?q=Luisenh%C3%B6he%202,%204963%20St.%20Peter%20am%20Inn&polygon_geojson=1&format=jsonv2

In Openstreetmap the town is called St. Peter am Hart in austria.

Our instance doesn't find any results for the address - but if we change St. Peter am Inn into St. Peter am Hart it does work. Another exmaple are street names with "Straße" vs. "Str." - We got only correct results if the search request is in the same notation as in the osm postgresl nominatim db.

Are there any options for enabling fuzzy search? Whats the reason for such different results inthe public instance of openstreetmap.org?

Thanks for help or tips

asked 30 Apr '22, 12:19

sylphen's gravatar image

sylphen
11112
accept rate: 0%


One Answer:

3

The Nominatim servers on osm.org always use the latests development version of the Nominatim software, so differences are always to be expected.

For the particular problem with St. Peter, the difference is that osm.org has the new ICU tokenizer configured. The handling of partial terms has changed a little bit, so that it is marginally better at this particular query.

You can already use the new tokenizer with the 4.0.1 release. However, be aware that switching the tokenizer requires a reimport. Also, the ICU tokenizer has seen quite a few improvements and bug fixes since the last release.

'Straße' vs. 'Str' has always worked. The problem there was probably somewhere else.

answered 02 May '22, 10:42

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Hi,

thank you for the tipp - we will try out that with the latest version in our test environment with enabled ICU tokenizer!

kinds regards

(02 May '22, 10:54) sylphen

Source code available on GitHub .