mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-09 16:26:02 +03:00
Do not apply limit where we have a sub-search
This commit is contained in:
parent
5f97080c73
commit
f561a3d1c7
@ -754,7 +754,7 @@
|
||||
$sSQL .= " from search_name";
|
||||
$sSQL .= " where ".join(' and ',$aTerms);
|
||||
$sSQL .= " order by ".join(', ',$aOrder);
|
||||
if ($aSearch['sHouseNumber'])
|
||||
if ($aSearch['sHouseNumber'] || $aSearch['sClass'])
|
||||
$sSQL .= " limit 50";
|
||||
elseif (!sizeof($aSearch['aName']) && !sizeof($aSearch['aAddress']) && $aSearch['sClass'])
|
||||
$sSQL .= " limit 1";
|
||||
|
Loading…
Reference in New Issue
Block a user