X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f7f5d60098bbf18f387f857b14523f2862fc7b1d..953064191f8c7f08f29aad41db94bf36863229e9:/nominatim/api/search/geocoder.py?ds=sidebyside diff --git a/nominatim/api/search/geocoder.py b/nominatim/api/search/geocoder.py index 6b58c945..27e4d91e 100644 --- a/nominatim/api/search/geocoder.py +++ b/nominatim/api/search/geocoder.py @@ -141,7 +141,8 @@ class ForwardGeocoder: or (result.importance is not None and result.importance < 0): continue distance = 0.0 - norm = self.query_analyzer.normalize_text(result.display_name) + norm = self.query_analyzer.normalize_text(' '.join((result.display_name, + result.country_code or ''))) words = set((w for w in norm.split(' ') if w)) if not words: continue