mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
only consider partials in multi-words for initial count
This ensures that it is less likely that we exclude meaningful words like 'hauptstrasse' just because they are frequent.
This commit is contained in:
@@ -168,7 +168,8 @@ class LegacyICUTokenizer:
|
||||
for name, cnt in cur:
|
||||
terms = set()
|
||||
for word in name_proc.get_variants_ascii(name_proc.get_normalized(name)):
|
||||
terms.update(word.split())
|
||||
if ' ' in word:
|
||||
terms.update(word.split())
|
||||
for term in terms:
|
||||
words[term] += cnt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user