mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 14:36:23 +03:00
add country code to words to be rematched
This commit is contained in:
parent
d35eb4105e
commit
28f7e51279
@ -141,7 +141,8 @@ class ForwardGeocoder:
|
|||||||
or (result.importance is not None and result.importance < 0):
|
or (result.importance is not None and result.importance < 0):
|
||||||
continue
|
continue
|
||||||
distance = 0.0
|
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))
|
words = set((w for w in norm.split(' ') if w))
|
||||||
if not words:
|
if not words:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user