]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2234 from darkshredder/add-man-page
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 29 Mar 2021 12:25:10 +0000 (14:25 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Mar 2021 12:25:10 +0000 (14:25 +0200)
Added Manual page for Nominatim tool

lib-php/SearchDescription.php

index 228b099917d6377f102a2987bf9e6f76af68058b..2b39443f6e79f1b86b1571520ac0c1d4369cf6bc 100644 (file)
@@ -614,7 +614,7 @@ class SearchDescription
         // too many results are expected for the street, i.e. if the result
         // will be narrowed down by an address. Remeber that with ordering
         // every single result has to be checked.
-        if ($this->sHouseNumber && (!empty($this->aAddress) || $this->sPostcode)) {
+        if ($this->sHouseNumber && ($this->bRareName || !empty($this->aAddress) || $this->sPostcode)) {
             $sHouseNumberRegex = '\\\\m'.$this->sHouseNumber.'\\\\M';
             $aOrder[] = ' (';
             $aOrder[0] .= 'EXISTS(';