]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/legacy_icu_tokenizer.py
fix full term token in special phrases
[nominatim.git] / nominatim / tokenizer / legacy_icu_tokenizer.py
index 960148890d0fe0a7ba465706d00a3097dbaf2d74..6148e459479635b7962b4ffda69c87edd81de598 100644 (file)
@@ -335,7 +335,7 @@ class LegacyICUNameAnalyzer:
             for word, cls, typ, oper in to_add:
                 term = self.name_processor.get_search_normalized(word)
                 if term:
-                    copystr.add(word, term, cls, typ,
+                    copystr.add(word, ' ' + term, cls, typ,
                                 oper if oper in ('in', 'near')  else None, 0)
                     added += 1