add penalty for special term searches

abbreviations for some of the terms are too easily matched against
common address terms like 'street'
This commit is contained in:
Sarah Hoffmann
2014-05-01 09:16:03 +02:00
parent 2cc0fa341b
commit 34adfd5041

View File

@@ -908,6 +908,7 @@
$aSearch['sType'] = $aSearchTerm['type'];
if (sizeof($aSearch['aName'])) $aSearch['sOperator'] = 'name';
else $aSearch['sOperator'] = 'near'; // near = in for the moment
if (strlen($aSearchTerm['operator']) == 0) $aSearch['iSearchRank'] += 1;
// Do we have a shortcut id?
if ($aSearch['sOperator'] == 'name')