mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 11:34:07 +00:00
move postcode matcher in a separate file
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user