]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/functions/placex_triggers.sql
split addr: tags into words before adding to the search index
[nominatim.git] / sql / functions / placex_triggers.sql
index c9095fbea94c3157932ff589642cdac7e0ecc2dc..7d6352b4eda6ea2bdd7fe0dfc6475ba710065f42 100644 (file)
@@ -138,6 +138,7 @@ DECLARE
 BEGIN
   IF bnd.rank_search >= 26 or bnd.rank_address = 0
      or ST_GeometryType(bnd.geometry) NOT IN ('ST_Polygon','ST_MultiPolygon')
+     or bnd.type IN ('postcode', 'postal_code')
   THEN
     RETURN NULL;
   END IF;