mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-24 21:44:45 +03:00
disable housenumber-specific search when no address details are provided
This commit is contained in:
parent
62ed8b9e0c
commit
c9f3d7d08b
@ -1240,7 +1240,7 @@
|
||||
$aTerms = array();
|
||||
$aOrder = array();
|
||||
|
||||
if ($aSearch['sHouseNumber'])
|
||||
if ($aSearch['sHouseNumber'] && sizeof($aSearch['aAddress']))
|
||||
{
|
||||
$sHouseNumberRegex = '\\\\m'.$aSearch['sHouseNumber'].'\\\\M';
|
||||
$aOrder[] = "exists(select place_id from placex where parent_place_id = search_name.place_id and transliteration(housenumber) ~* E'".$sHouseNumberRegex."' limit 1) desc";
|
||||
|
Loading…
Reference in New Issue
Block a user