X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/896199c9d4f9252307b1068cbe94fa8aedfedcf8..adf3ae004fdb34e4df6469ac372b33b563c69104:/lib-php/SearchDescription.php?ds=sidebyside diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index 65df58ef..3f3beab1 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -264,6 +264,8 @@ class SearchDescription { if (empty($this->aName)) { $this->bNameNeedsAddress = $bNeedsAddress; + } elseif ($bSearchable && count($this->aName) >= 2) { + $this->bNameNeedsAddress = false; } else { $this->bNameNeedsAddress &= $bNeedsAddress; }