]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 23 Sep 2020 07:21:09 +0000 (09:21 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 23 Sep 2020 07:21:09 +0000 (09:21 +0200)
1  2 
lib/Geocode.php

diff --combined lib/Geocode.php
index 3d6838b6d4045075fcf8f692c75547aff45be59e,bc81bced6918eb204f3ef9563cc39a9e5408bfcb..7ab53d97812a5cbf640672e93f0e963f8c6f10eb
@@@ -18,7 -18,7 +18,7 @@@ class Geocod
      protected $aLangPrefOrder = array();
  
      protected $aExcludePlaceIDs = array();
 -    protected $bReverseInPlan = false;
 +    protected $bReverseInPlan = true;
  
      protected $iLimit = 20;
      protected $iFinalLimit = 10;
              $oValidTokens = new TokenList();
  
              if (!empty($aTokens)) {
-                 $sSQL = 'SELECT word_id, word_token, word, class, type, country_code, operator, search_name_count';
-                 $sSQL .= ' FROM word ';
-                 $sSQL .= ' WHERE word_token in ('.join(',', $this->oDB->getDBQuotedList($aTokens)).')';
-                 Debug::printSQL($sSQL);
                  $oValidTokens->addTokensFromDB(
                      $this->oDB,
                      $aTokens,