]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/query/linking.feature
save differing linked polace names in extra fields
[nominatim.git] / test / bdd / db / query / linking.feature
1 @DB
2 Feature: Searching linked places
3     Tests that information from linked places can be searched correctly
4
5     Scenario: Additional names from linked places are searchable
6         Given the places
7          | osm  | class    | type           | admin | name  | geometry |
8          | R13  | boundary | administrative | 6     | Garbo | poly-area:0.1 |
9         Given the places
10          | osm  | class    | type           | admin | name+name:it | geometry |
11          | N2   | place    | hamlet         | 15    | Vario        | 0.006 0.00001 |
12         And the relations
13          | id | members       | tags+type |
14          | 13 | N2:label      | boundary |
15         When importing
16         Then placex contains
17          | object  | linked_place_id |
18          | N2      | R13 |
19         When sending search query "Vario"
20         Then results contain
21          | osm |
22          | R13 |
23
24
25     Scenario: Differing names from linked places are searchable
26         Given the places
27          | osm  | class    | type           | admin | name  | geometry |
28          | R13  | boundary | administrative | 6     | Garbo | poly-area:0.1 |
29         Given the places
30          | osm  | class    | type           | admin | name  | geometry |
31          | N2   | place    | hamlet         | 15    | Vario | 0.006 0.00001 |
32         And the relations
33          | id | members       | tags+type |
34          | 13 | N2:label      | boundary |
35         When importing
36         Then placex contains
37          | object  | linked_place_id |
38          | N2      | R13 |
39         When sending search query "Vario"
40         Then results contain
41          | osm |
42          | R13 |