+ When searching for "Walltown 23, Strange Town"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | 23, Walltown, Strange Town |
+ When searching for "Strange Town, Walltown 23"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | 23, Walltown, Strange Town |
+
+ Scenario: Named POIs can be searched by housenumber when unknown addr:place is present
+ Given the scene roads-with-pois
+ And the places
+ | osm | class | type | name | housenr | addr+place | geometry |
+ | N1 | place | house | Blue house | 23 | Walltown | :p-N1 |
+ And the places
+ | osm | class | type | name+name | geometry |
+ | W1 | highway | residential | Rose Street | :w-north |
+ | N2 | place | city | Strange Town | :p-N1 |
+ When importing
+ Then search_name contains
+ | object | name_vector | nameaddress_vector |
+ | N1 | #Walltown, #Blue house | Walltown, Strange, Town |
+ When searching for "23 Walltown, Strange Town"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Walltown, Strange Town |
+ When searching for "Walltown 23, Strange Town"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Walltown, Strange Town |
+ When searching for "Strange Town, Walltown 23"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Walltown, Strange Town |
+ When searching for "Strange Town, Walltown 23, Blue house"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Walltown, Strange Town |
+ When searching for "Strange Town, Walltown, Blue house"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Walltown, Strange Town |
+
+ Scenario: Named POIs can be found when unknown multi-word addr:place is present
+ Given the scene roads-with-pois
+ And the places
+ | osm | class | type | name | housenr | addr+place | geometry |
+ | N1 | place | house | Blue house | 23 | Moon sun | :p-N1 |
+ And the places
+ | osm | class | type | name+name | geometry |
+ | W1 | highway | residential | Rose Street | :w-north |
+ | N2 | place | city | Strange Town | :p-N1 |
+ When importing
+ Then search_name contains
+ | object | name_vector | nameaddress_vector |
+ | N1 | #Moon sun, #Blue house | Moon, Sun, Strange, Town |
+ When searching for "23 Moon Sun, Strange Town"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Moon sun, Strange Town |
+ When searching for "Blue house, Moon Sun, Strange Town"
+ Then results contain
+ | osm_type | osm_id | name |
+ | N | 1 | Blue house, 23, Moon sun, Strange Town |