make sure that addr:* tags can always be searched for

Always add contents of addr:* tags into address part of the search
table, even when there is no corresponding other name. This keeps
search tolerant to the kind of tagging where parts show up in the
address that have no corresponding object in the database or where
it is only an unaddressable object.
This commit is contained in:
Sarah Hoffmann
2020-08-19 11:37:21 +02:00
parent 984979d9bf
commit d6ff7475f1
2 changed files with 9 additions and 3 deletions

View File

@@ -39,13 +39,13 @@ Feature: Creation of search terms
| object | nameaddress_vector |
| W1 | bonn, new york, smalltown |
Scenario: A known addr:* tag is not added if the name is unknown
Scenario: A known addr:* tag is added even if the name is unknown
Given the scene roads-with-pois
And the places
| osm | class | type | name | addr+city | geometry |
| W1 | highway | residential | Road | Nandu | :w-north |
When importing
Then search_name contains not
Then search_name contains
| object | nameaddress_vector |
| W1 | nandu |