mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-10-05 23:17:14 +03:00
include housenumbers and postcodes when rechecking for exact matches
This commit is contained in:
parent
196c55e341
commit
450a12c6be
@ -1737,7 +1737,7 @@ class Geocode
|
|||||||
$aClassType = getClassTypesWithImportance();
|
$aClassType = getClassTypesWithImportance();
|
||||||
$aRecheckWords = preg_split('/\b[\s,\\-]*/u', $sQuery);
|
$aRecheckWords = preg_split('/\b[\s,\\-]*/u', $sQuery);
|
||||||
foreach ($aRecheckWords as $i => $sWord) {
|
foreach ($aRecheckWords as $i => $sWord) {
|
||||||
if (!preg_match('/\pL/', $sWord)) unset($aRecheckWords[$i]);
|
if (!preg_match('/[\pL\pN]/', $sWord)) unset($aRecheckWords[$i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONST_Debug) {
|
if (CONST_Debug) {
|
||||||
|
@ -58,7 +58,6 @@ Feature: Search queries
|
|||||||
| 30 |
|
| 30 |
|
||||||
|
|
||||||
# https://trac.openstreetmap.org/ticket/5094
|
# https://trac.openstreetmap.org/ticket/5094
|
||||||
@Fail
|
|
||||||
Scenario: housenumbers are ordered by complete match first
|
Scenario: housenumbers are ordered by complete match first
|
||||||
When sending json search query "6395 geminis, montevideo" with address
|
When sending json search query "6395 geminis, montevideo" with address
|
||||||
Then result addresses contain
|
Then result addresses contain
|
||||||
|
Loading…
Reference in New Issue
Block a user