]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/structured.feature
rename documentation to 'Nominatim Manual'
[nominatim.git] / test / bdd / api / search / structured.feature
index e94cd4cc2b26b15bf79e02e2d5b12fb2d490b8a7..f8044dad18db1e249f0438758ad86d0cb4e95d15 100644 (file)
@@ -15,13 +15,13 @@ Feature: Structured search queries
     Scenario: Postcode only
         When sending json search query "" with address
           | postalcode |
     Scenario: Postcode only
         When sending json search query "" with address
           | postalcode |
-          | 22547 |
+          | 9495 |
         Then results contain
           | type |
           | ^post(al_)?code |
         And result addresses contain
           | postcode |
         Then results contain
           | type |
           | ^post(al_)?code |
         And result addresses contain
           | postcode |
-          | 22547 |
+          | 9495 |
 
     Scenario: Street, postcode and country
         When sending xml search query "" with address
 
     Scenario: Street, postcode and country
         When sending xml search query "" with address
@@ -50,16 +50,19 @@ Feature: Structured search queries
     Scenario: Amenity, city
         When sending json search query "" with address
           | city  | amenity |
     Scenario: Amenity, city
         When sending json search query "" with address
           | city  | amenity |
-          | Vaduz | church  |
+          | Vaduz | bar  |
         Then result addresses contain
           | country |
           | Liechtenstein |
         And  results contain
           | class   | type |
         Then result addresses contain
           | country |
           | Liechtenstein |
         And  results contain
           | class   | type |
-          | amenity | place_of_worship |
+          | amenity | ^(pub)\|(bar) |
 
 
-    Scenario: gihub #176
+    #176
+    Scenario: Structured search restricts rank
         When sending json search query "" with address
           | city |
         When sending json search query "" with address
           | city |
-          | Mercedes |
-        Then at least 1 result is returned
+          | Vaduz |
+        Then result addresses contain
+          | town |
+          | Vaduz |