mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 05:35:13 +03:00
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:
parent
fc19ebb218
commit
0a14142156
@ -661,7 +661,7 @@ BEGIN
|
||||
UPDATE placex SET linked_place_id = NEW.place_id WHERE place_id = linked_node_id;
|
||||
IF NOT %REVERSE-ONLY% THEN
|
||||
DELETE FROM search_name WHERE place_id = linked_node_id;
|
||||
END IF;
|
||||
END IF;
|
||||
END LOOP;
|
||||
END IF;
|
||||
END LOOP;
|
||||
@ -811,6 +811,7 @@ BEGIN
|
||||
IF NOT %REVERSE-ONLY% THEN
|
||||
DELETE FROM search_name WHERE place_id = location.place_id;
|
||||
END IF;
|
||||
PERFORM deleteLocationArea(NEW.partition, location.place_id, NEW.rank_search);
|
||||
|
||||
SELECT wikipedia, importance
|
||||
FROM compute_importance(location.extratags, NEW.country_code,
|
||||
|
Loading…
Reference in New Issue
Block a user