]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/tokenizer/icu_tokenizer.sql
Merge pull request #2553 from lonvia/revert-street-matching-to-full-names
[nominatim.git] / lib-sql / tokenizer / icu_tokenizer.sql
index 6092319a0578d338915b6890902d71df7ec90b1f..547facce1572f367d2f7164ad94ddeddad929074 100644 (file)
@@ -51,7 +51,7 @@ $$ LANGUAGE SQL IMMUTABLE;
 CREATE OR REPLACE FUNCTION token_matches_street(info JSONB, street_tokens INTEGER[])
   RETURNS BOOLEAN
 AS $$
-  SELECT (info->>'street')::INTEGER[] <@ street_tokens
+  SELECT (info->>'street')::INTEGER[] && street_tokens
 $$ LANGUAGE SQL IMMUTABLE STRICT;