X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/63f53beb972ef51cc0c0c6ecc3c134e7d4cb6284..e70ff539d3e3d53c11ea80a99f82749ec0312cb4:/lib/SearchDescription.php?ds=inline diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index d78bf975..5431b3eb 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -262,7 +262,7 @@ class SearchDescription $iOp = Operator::NEAR; // near == in for the moment if ($aSearchTerm['operator'] == '') { - if (sizeof($this->aName)) { + if (sizeof($this->aName) || $this->oContext->isBoundedSearch()) { $iOp = Operator::NAME; } $oSearch->iSearchRank += 2; @@ -360,7 +360,7 @@ class SearchDescription && (!sizeof($this->aName) || $this->iNamePhrase == $iPhrase) ) { $oSearch = clone $this; - $oSearch->iSearchRank++; + $oSearch->iSearchRank += 2; if (!sizeof($this->aName)) { $oSearch->iSearchRank += 1; }