mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
make sure linked places get recomputed when unlinked
When linked the place may not be in the search index, so it must be reindexed when being unlinked. The status change will only have an effect during the subsequent update, so change tests to that effect.
This commit is contained in:
@@ -1161,7 +1161,8 @@ BEGIN
|
||||
DELETE FROM place_addressline WHERE place_id = NEW.place_id;
|
||||
result := deleteRoad(NEW.partition, NEW.place_id);
|
||||
result := deleteLocationArea(NEW.partition, NEW.place_id, NEW.rank_search);
|
||||
UPDATE placex set linked_place_id = null where linked_place_id = NEW.place_id;
|
||||
UPDATE placex set linked_place_id = null, indexed_status = 2
|
||||
where linked_place_id = NEW.place_id;
|
||||
|
||||
IF NEW.linked_place_id is not null THEN
|
||||
RETURN NEW;
|
||||
|
||||
Reference in New Issue
Block a user