Last active
December 15, 2015 16:39
-
-
Save longkey1/5290393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION to_tsquery_ungm(text) RETURNS tsquery AS $$ | |
select to_tsquery(array_to_string(regexp_split_to_array($1, E'\\s*'),'&')); | |
$$ language sql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment