Glossary: PostgreSQL Beyond the Basics
websearch_to_tsquery()
A function that turns what a customer types into a tsquery, understanding search-engine style input: plain words mean and, quotes mean a phrase, `or` means or, and `-` means not. It never raises a syntax error.