X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b7704833e4b011541928372a46ea692c3a496b5c..80ea13437df4c6d57ea503adbdfc9928de8d859c:/nominatim/tokenizer/icu_tokenizer.py diff --git a/nominatim/tokenizer/icu_tokenizer.py b/nominatim/tokenizer/icu_tokenizer.py index 61c47c11..0dc551e1 100644 --- a/nominatim/tokenizer/icu_tokenizer.py +++ b/nominatim/tokenizer/icu_tokenizer.py @@ -607,7 +607,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer): def _add_postcode(self, item): """ Make sure the normalized postcode is present in the word table. """ - analyzer = self.token_analysis.get_analyzer('@postcode') + analyzer = self.token_analysis.analysis.get('@postcode') if analyzer is None: postcode_name = item.name.strip().upper()