From: Sarah Hoffmann Date: Mon, 20 Aug 2012 21:33:35 +0000 (+0200) Subject: avoid reassigning address rank of place itself X-Git-Tag: deploy~680 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/804bd114280a266d9b220426420f2305088ffb70?ds=sidebyside avoid reassigning address rank of place itself --- 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