- | postcode | country | rank_search | rank_address |
- | 56427 | de | 21 | 11 |
- | 5642 | de | 30 | 30 |
- | 5642A | de | 30 | 30 |
- | 564276 | de | 30 | 30 |
-
- Scenario: search and address rank for other postcodes are correctly assigned
- Given the places
- | osm | class | type | postcode | geometry |
- | N1 | place | postcode | 1 | country:ca |
- | N2 | place | postcode | X3 | country:ca |
- | N3 | place | postcode | 543 | country:ca |
- | N4 | place | postcode | 54dc | country:ca |
- | N5 | place | postcode | 12345 | country:ca |
- | N6 | place | postcode | 55TT667 | country:ca |
- | N7 | place | postcode | 123-65 | country:ca |
- | N8 | place | postcode | 12 445 4 | country:ca |
- | N9 | place | postcode | A1:bc10 | country:ca |
- When importing
- Then location_postcode contains exactly
- | postcode | country | rank_search | rank_address |
- | 1 | ca | 21 | 11 |
- | X3 | ca | 21 | 11 |
- | 543 | ca | 21 | 11 |
- | 54DC | ca | 21 | 11 |
- | 12345 | ca | 21 | 11 |
- | 55TT667 | ca | 21 | 11 |
- | 123-65 | ca | 25 | 11 |
- | 12 445 4 | ca | 25 | 11 |
- | A1:BC10 | ca | 25 | 11 |
-
-
+ | country | postcode | geometry |
+ And there are no word tokens for postcodes 01982
+ When sending search query "111, 01982 Null Island"
+ Then results contain
+ | osm | display_name |
+ | N34 | 111, Null Island, 01982 |