From: Brian Quinion Date: Sat, 19 Jan 2013 01:47:17 +0000 (+0000) Subject: For structured queries remove type list for building / street level features X-Git-Tag: v2.2.0~139 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/550523df1bfc8f4d58871aeb7aa7ed0ae2593431?hp=--cc For structured queries remove type list for building / street level features --- 550523df1bfc8f4d58871aeb7aa7ed0ae2593431 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)) {