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