I've searched the postgreSQL documentation (on v9.6) for use of to_tsquery() as well as a number of other sources (via the Google search engine). I have found hints of others experiencing similar problems, but I could use help perhaps just understanding the fundamental nature of the to_tsquery postgreSQL syntax.
if I query
SELECT * from table
WHERE table.email @@ to_tsquery('[email protected]');
then I get all rows where the email
column contains '[email protected]'.
But if I query
SELECT * from table
WHERE table.email @@ to_tsquery('user:* & domain:* & ext:*');
then I get no rows.
Can anyone offer any guidance on how I may be misusing to_tsquery
in the second case? My intention is to simply drop @
and .
from the email address and MATCH on the cases where usr
, domain
, and ext
match the email.
Thank you for any guidance!
--J