]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/Result.php
Merge pull request #2228 from AntoJvlt/import-special-phrases-porting-python
[nominatim.git] / lib-php / Result.php
index a67c2fe474910a20356ac05edafdac68e3168c17..a7747ea34d6fee12e98b0a7eb31c9fbaccfb7fb8 100644 (file)
@@ -26,6 +26,8 @@ class Result
     public $iExactMatches = 0;
     /// Subranking within the results (the higher the worse).
     public $iResultRank = 0;
+    /// Address rank of the result.
+    public $iAddressRank;
 
     public function debugInfo()
     {
@@ -84,7 +86,7 @@ class Result
 
         foreach ($aResults as $oRes) {
             if ($oRes->iResultRank < $iMinRank) {
-                $aTail = array_merge($aTail, $aHead);
+                $aTail += $aHead;
                 $aHead = array($oRes->iId => $oRes);
                 $iMinRank = $oRes->iResultRank;
             } elseif ($oRes->iResultRank == $iMinRank) {