remove postcodes entirely from indexing

place=postcode places are artificial places that collect addr:postcode
points for aggration. They should neither show up in the address nor
be searchable. That means that there is no need to index them at all.
Only let boundary=postal_code through which define correct areas for
postcodes.
This commit is contained in:
Sarah Hoffmann
2020-09-18 15:09:35 +02:00
parent 7fb62ea904
commit 4c9cfe2532
4 changed files with 30 additions and 25 deletions

View File

@@ -145,10 +145,6 @@ BEGIN
THEN
SELECT * INTO search_rank, address_rank
FROM get_postcode_rank(country, postcode);
IF NOT extended_type = 'A' THEN
address_rank := 0;
END IF;
ELSEIF extended_type = 'N' AND place_class = 'highway' THEN
search_rank = 30;
address_rank = 0;