X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/dc3b1abfe2d06c790317bb66e51abfd9334e08f8..b50d6078f5cec2362813d710db35e616e9913ea2:/test/bdd/db/import/search_name.feature diff --git a/test/bdd/db/import/search_name.feature b/test/bdd/db/import/search_name.feature index 0e922e1d..9e899053 100644 --- a/test/bdd/db/import/search_name.feature +++ b/test/bdd/db/import/search_name.feature @@ -2,6 +2,29 @@ Feature: Creation of search terms Tests that search_name table is filled correctly + Scenario Outline: Comma- and semicolon separated names appear as full names + Given the places + | osm | class | type | name+alt_name | + | N1 | place | city | New YorkBig Apple | + When importing + Then search_name contains + | object | name_vector | + | N1 | #New York, #Big Apple | + + Examples: + | sep | + | , | + | ; | + + Scenario Outline: Name parts before brackets appear as full names + Given the places + | osm | class | type | name+name | + | N1 | place | city | Halle (Saale) | + When importing + Then search_name contains + | object | name_vector | + | N1 | #Halle Saale, #Halle | + Scenario: Unnamed POIs have no search entry Given the scene roads-with-pois And the places @@ -24,7 +47,7 @@ Feature: Creation of search terms When importing Then search_name contains | object | nameaddress_vector | - | N1 | Rose, Street, Walltown | + | N1 | #Rose Street, Walltown | When searching for "23 Rose Street, Walltown" Then results contain | osm_type | osm_id | name | @@ -49,7 +72,7 @@ Feature: Creation of search terms When importing Then search_name contains | object | nameaddress_vector | - | N1 | Rose Street, Little, Big, Town | + | N1 | #Rose Street, rose, Little, Big, Town | When searching for "23 Rose Street, Little Big Town" Then results contain | osm_type | osm_id | name | @@ -248,7 +271,7 @@ Feature: Creation of search terms When importing Then search_name contains | object | name_vector | nameaddress_vector | - | N1 | #Green Moss | Rose, Street, Walltown | + | N1 | #Green Moss | #Rose Street, Walltown | When searching for "Green Moss, Rose Street, Walltown" Then results contain | osm_type | osm_id | name | @@ -299,7 +322,7 @@ Feature: Creation of search terms When importing Then search_name contains | object | name_vector | nameaddress_vector | - | N1 | foo | the road | + | N1 | foo | #the road | Scenario: Some addr: tags are added to address Given the scene roads-with-pois