From 34adfd504104fa941f6edbfa155b990ef7b3d77b Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 1 May 2014 09:16:03 +0200 Subject: [PATCH] add penalty for special term searches abbreviations for some of the terms are too easily matched against common address terms like 'street' --- lib/Geocode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Geocode.php b/lib/Geocode.php index 7f1d3733..92e1a0b3 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -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') -- 2.45.2