SELECT phraseto_tsquery('cats ate rats');
phraseto_tsquery
-------------------------------
- ( 'cat' <-> 'ate' ) <-> 'rat'
+ 'cat' <-> 'ate' <-> 'rat'
SELECT phraseto_tsquery('the cats ate the rats');
phraseto_tsquery
-------------------------------
- ( 'cat' <-> 'ate' ) <2> 'rat'
+ 'cat' <-> 'ate' <2> 'rat'
+ The precedence of tsquery operators is as follows: |, &,
+ <->, !.
+
SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
phraseto_tsquery
-----------------------------
- ( 'fat' <-> 'rat' ) <-> 'c'
+ 'fat' <-> 'rat' <-> 'c'