]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/db/import/search_terms.feature
remove most landuses from addresses
[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