X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8e004dca446088ee06a65f0e18e277209eae7bb3..8d6d813f6b8782c05a71980e0f139bbb18739c28:/sql/functions.sql diff --git a/sql/functions.sql b/sql/functions.sql index 382cb003..b1280cac 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -1639,6 +1639,8 @@ BEGIN location_rank_search := 0; location_distance := 0; location_parent := NULL; + -- added ourself as address already + address_havelevel[NEW.rank_address] := true; -- RAISE WARNING ' getNearFeatures(%,''%'',%,''%'')',NEW.partition, place_centroid, search_maxrank, isin_tokens; FOR location IN SELECT * from getNearFeatures(NEW.partition, place_centroid, search_maxrank, isin_tokens) LOOP