From 32ca631b7490661be1050ab78c3be5b5039d0a52 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 10 Jun 2021 10:28:46 +0200 Subject: [PATCH] fix full term token in special phrases --- nominatim/tokenizer/legacy_icu_tokenizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5