@@ -387,14 +387,18 @@ SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
387
387
SELECT phraseto_tsquery('cats ate rats');
388
388
phraseto_tsquery
389
389
-------------------------------
390
- ( 'cat' <-> 'ate' ) <-> 'rat'
390
+ 'cat' <-> 'ate' <-> 'rat'
391
391
392
392
SELECT phraseto_tsquery('the cats ate the rats');
393
393
phraseto_tsquery
394
394
-------------------------------
395
- ( 'cat' <-> 'ate' ) <2> 'rat'
395
+ 'cat' <-> 'ate' <2> 'rat'
396
396
</programlisting>
397
397
</para>
398
+ <para>
399
+ The precedence of tsquery operators is as follows: <literal>|</literal>, <literal>&</literal>,
400
+ <literal><-></literal>, <literal>!</literal>.
401
+ </para>
398
402
</sect2>
399
403
400
404
<sect2 id="textsearch-intro-configurations">
@@ -948,7 +952,7 @@ SELECT phraseto_tsquery('english', 'The Fat Rats');
948
952
SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
949
953
phraseto_tsquery
950
954
-----------------------------
951
- ( 'fat' <-> 'rat' ) <-> 'c'
955
+ 'fat' <-> 'rat' <-> 'c'
952
956
</screen>
953
957
954
958
It is possible to specify the configuration to be used to parse the document,