X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/dba5b2f86e3b91eade86a851932004a56b34134e..a9c06d89c144fb90616e3a780029fe3d9bcfd90d:/sql/functions.sql diff --git a/sql/functions.sql b/sql/functions.sql index 609d46c9..b086786a 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -2343,7 +2343,7 @@ BEGIN IF for_place_id IS NULL THEN select parent_place_id, calculated_country_code, housenumber, rank_search, postcode, name, class, type from placex - WHERE place_id = in_place_id and rank_address = 30 + WHERE place_id = in_place_id and rank_search > 27 INTO for_place_id, searchcountrycode, searchhousenumber, searchrankaddress, searchpostcode, searchhousename, searchclass, searchtype; END IF;