forked from hans/Nominatim
remove linked places also from the location_area_large tables
We don't want linked places to show up in addresses either, so remove them from the address lookup table.
This commit is contained in:
@@ -661,7 +661,7 @@ BEGIN
|
|||||||
UPDATE placex SET linked_place_id = NEW.place_id WHERE place_id = linked_node_id;
|
UPDATE placex SET linked_place_id = NEW.place_id WHERE place_id = linked_node_id;
|
||||||
IF NOT %REVERSE-ONLY% THEN
|
IF NOT %REVERSE-ONLY% THEN
|
||||||
DELETE FROM search_name WHERE place_id = linked_node_id;
|
DELETE FROM search_name WHERE place_id = linked_node_id;
|
||||||
END IF;
|
END IF;
|
||||||
END LOOP;
|
END LOOP;
|
||||||
END IF;
|
END IF;
|
||||||
END LOOP;
|
END LOOP;
|
||||||
@@ -811,6 +811,7 @@ BEGIN
|
|||||||
IF NOT %REVERSE-ONLY% THEN
|
IF NOT %REVERSE-ONLY% THEN
|
||||||
DELETE FROM search_name WHERE place_id = location.place_id;
|
DELETE FROM search_name WHERE place_id = location.place_id;
|
||||||
END IF;
|
END IF;
|
||||||
|
PERFORM deleteLocationArea(NEW.partition, location.place_id, NEW.rank_search);
|
||||||
|
|
||||||
SELECT wikipedia, importance
|
SELECT wikipedia, importance
|
||||||
FROM compute_importance(location.extratags, NEW.country_code,
|
FROM compute_importance(location.extratags, NEW.country_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user