From: Sarah Hoffmann Date: Thu, 10 Jun 2021 08:28:46 +0000 (+0200) Subject: fix full term token in special phrases X-Git-Tag: v4.0.0~58^2~15 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/32ca631b7490661be1050ab78c3be5b5039d0a52 fix full term token in special phrases --- diff --git a/nominatim/tokenizer/legacy_icu_tokenizer.py b/nominatim/tokenizer/legacy_icu_tokenizer.py index 96014889..6148e459 100644 --- a/nominatim/tokenizer/legacy_icu_tokenizer.py +++ b/nominatim/tokenizer/legacy_icu_tokenizer.py @@ -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