exclude addr:inclusion from search

This commit is contained in:
Sarah Hoffmann
2022-05-31 11:23:42 +02:00
parent ecee5cf801
commit 1821f68ca0
2 changed files with 3 additions and 2 deletions

View File

@@ -482,7 +482,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer):
if not item.suffix:
token_info.add_place(self._compute_partial_tokens(item.name))
elif not item.kind.startswith('_') and not item.suffix and \
item.kind not in ('country', 'full'):
item.kind not in ('country', 'full', 'inclusion'):
token_info.add_address_term(item.kind, self._compute_partial_tokens(item.name))