From: Sarah Hoffmann Date: Mon, 7 May 2018 19:48:29 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~333 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/473bbb7234dc21a74b3d7ed0115a02ca3379014b?ds=inline;hp=-c Merge remote-tracking branch 'upstream/master' --- 473bbb7234dc21a74b3d7ed0115a02ca3379014b diff --combined lib/Geocode.php index 1c84f14b,68a9a7cb..e9b304d2 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@@ -19,7 -19,7 +19,7 @@@ class Geocod protected $bIncludeAddressDetails = false; protected $aExcludePlaceIDs = array(); - protected $bReverseInPlan = false; + protected $bReverseInPlan = true; protected $iLimit = 20; protected $iFinalLimit = 10; @@@ -658,7 -658,6 +658,6 @@@ $this->oDB->getAll($sSQL), 'Could not get word tokens.' ); - $aWordFrequencyScores = array(); foreach ($aDatabaseWords as $aToken) { // Filter country tokens that do not match restricted countries. if ($this->aCountryCodes @@@ -681,7 -680,6 +680,6 @@@ } else { $aValidTokens[$aToken['word_token']] = array($aToken); } - $aWordFrequencyScores[$aToken['word_id']] = $aToken['search_name_count'] + 1; } // US ZIP+4 codes - if there is no token, merge in the 5-digit ZIP code @@@ -781,7 -779,6 +779,6 @@@ $aResults += $oSearch->query( $this->oDB, - $aWordFrequencyScores, $this->iMinAddressRank, $this->iMaxAddressRank, $this->iLimit