]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/db/import/search_terms.feature
add mention of required Tiger files for test database
[nominatim.git] / tests / features / db / import / search_terms.feature
1 @DB
2 Feature: Creation of search terms
3     Tests that search_name table is filled correctly
4
5     Scenario: POIs without a name have no search entry
6         Given the scene roads-with-pois
7         And the place nodes
8          | osm_id | class | type  | geometry
9          | 1      | place | house | :p-N1
10         And the place ways
11          | osm_id | class   | type        | geometry
12          | 1      | highway | residential | :w-north
13         When importing
14         Then table search_name has no entry for N1
15
16
17     Scenario: Named POIs inherit address from parent
18         Given the scene roads-with-pois
19         And the place nodes
20          | osm_id | class | type  | name | geometry
21          | 1      | place | house | foo  | :p-N1
22         And the place ways
23          | osm_id | class   | type        | name     | geometry
24          | 1      | highway | residential | the road | :w-north
25         When importing
26         Then search_name table contains
27          | place_id | name_vector | nameaddress_vector
28          | N1       | foo         | the road
29
30     Scenario: Roads take over the postcode from attached houses
31         Given the scene roads-with-pois
32         And the place nodes
33          | osm_id | class | type  | housenumber | postcode | street   | geometry
34          | 1      | place | house | 1           | 12345    | North St |:p-S1
35         And the place ways
36          | osm_id | class   | type        | name     | geometry
37          | 1      | highway | residential | North St | :w-north
38         When importing
39         Then search_name table contains
40          | place_id | nameaddress_vector
41          | W1       | 12345
42