For structured queries remove type list for building / street level features

This commit is contained in:
Brian Quinion 2013-01-19 01:47:17 +00:00
parent 3d8d52632b
commit 550523df1b

View File

@ -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))
{