X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3737712044b50ec1319afeebcd24d0ca2d0b181d..acd8ca2ebda96c7dd6d7e2485a5c9c87dade0ffa:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index f45b2caa..ab9446e0 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -808,9 +808,7 @@ class Geocode $sSQL .= 'WHERE place_id in ('.$sPlaceIds.') '; $sSQL .= ' AND ('; $sSQL .= " placex.rank_address between $this->iMinAddressRank and $this->iMaxAddressRank "; - if (14 >= $this->iMinAddressRank && 14 <= $this->iMaxAddressRank) { - $sSQL .= " OR (extratags->'place') = 'city'"; - } + $sSQL .= " OR placex.rank_search between $this->iMinAddressRank and $this->iMaxAddressRank "; if ($this->aAddressRankList) { $sSQL .= ' OR placex.rank_address in ('.join(',', $this->aAddressRankList).')'; }