X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8e004dca446088ee06a65f0e18e277209eae7bb3..9ab82a4f1f0a2fdd87feede0c422a51888cbfb89:/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
 
