X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4b08a08968c0317c38960ad6d8e2ef4099933fe6..6b7c81aceea666a356da7cde2d4eea9ab459d404:/sql/functions.sql diff --git a/sql/functions.sql b/sql/functions.sql index d254e33e..929e5376 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -1689,6 +1689,11 @@ BEGIN END IF; END IF; + END IF; + + -- Name searches can be done for ways as well as relations + IF NEW.osm_type in ('W','R') AND NEW.rank_search < 26 THEN + -- not found one yet? how about doing a name search IF NEW.centroid IS NULL AND (NEW.name->'name') is not null and make_standard_name(NEW.name->'name') != '' THEN