Merge pull request #3774 from lonvia/remove-postcodes-from-nameaddressvector

Do not add postcodes from postcode boundaries to address vector
This commit is contained in:
Sarah Hoffmann
2025-07-08 17:23:05 +02:00
committed by GitHub

View File

@@ -638,8 +638,10 @@ BEGIN
-- Add it to the list of search terms
{% if not db.reverse_only %}
nameaddress_vector := array_merge(nameaddress_vector,
location.keywords::integer[]);
IF location.rank_address != 11 AND location.rank_address != 5 THEN
nameaddress_vector := array_merge(nameaddress_vector,
location.keywords::integer[]);
END IF;
{% endif %}
INSERT INTO place_addressline (place_id, address_place_id, fromarea,