mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
Merge pull request #2730 from lonvia/exclude-inclusion-tag
Exclude addr:inclusion from search
This commit is contained in:
commit
60367d95dd
@ -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))
|
||||
|
||||
|
||||
|
@ -475,7 +475,8 @@ class LegacyNameAnalyzer(AbstractAnalyzer):
|
||||
token_info.add_street(self.conn, value)
|
||||
elif key == 'place':
|
||||
token_info.add_place(self.conn, value)
|
||||
elif not key.startswith('_') and key not in ('country', 'full'):
|
||||
elif not key.startswith('_') \
|
||||
and key not in ('country', 'full', 'inclusion'):
|
||||
addr_terms.append((key, value))
|
||||
|
||||
if hnrs:
|
||||
|
Loading…
Reference in New Issue
Block a user