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'
</programlisting>
</para>
+ <para>
+ The precedence of tsquery operators is as follows: <literal>|</literal>, <literal>&</literal>,
+ <literal><-></literal>, <literal>!</literal>.
+ </para>
</sect2>
<sect2 id="textsearch-intro-configurations">
SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
phraseto_tsquery
-----------------------------
- ( 'fat' <-> 'rat' ) <-> 'c'
+ 'fat' <-> 'rat' <-> 'c'
</screen>
</para>