]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix full term token in special phrases
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 10 Jun 2021 08:28:46 +0000 (10:28 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 4 Jul 2021 08:28:20 +0000 (10:28 +0200)
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