From 550523df1bfc8f4d58871aeb7aa7ed0ae2593431 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Sat, 19 Jan 2013 01:47:17 +0000 Subject: [PATCH] For structured queries remove type list for building / street level features --- website/search.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)) { -- 2.39.5