X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3d8d52632b20b96e2236330c49c88a33c999e72f..550523df1bfc8f4d58871aeb7aa7ed0ae2593431:/website/search.php diff --git a/website/search.php b/website/search.php index e00d8791..aee77345 100755 --- a/website/search.php +++ b/website/search.php @@ -163,7 +163,10 @@ } if (sizeof($aStructuredQuery) > 0) { $sQuery = join(', ', $aStructuredQuery); - $sAllowedTypesSQLList = '(\'place\',\'boundary\')'; + if ($iMaxAddressRank < 30) + { + $sAllowedTypesSQLList = '(\'place\',\'boundary\')'; + } } if ($sQuery) @@ -1140,7 +1143,7 @@ if ($iGroupLoop > 4) break; if ($iQueryLoop > 30) break; } -//exit; + // Did we find anything? if (isset($aResultPlaceIDs) && sizeof($aResultPlaceIDs)) {