ICU: matching any street name will do again

This commit is contained in:
Sarah Hoffmann
2021-12-06 14:26:08 +01:00
parent 44cfce1ca4
commit 5e435b41ba
4 changed files with 32 additions and 2 deletions

View 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;