File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -358,14 +358,18 @@ SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
358358SELECT phraseto_tsquery('cats ate rats');
359359 phraseto_tsquery
360360-------------------------------
361- ( 'cat' <-> 'ate' ) <-> 'rat'
361+ 'cat' <-> 'ate' <-> 'rat'
362362
363363SELECT phraseto_tsquery('the cats ate the rats');
364364 phraseto_tsquery
365365-------------------------------
366- ( 'cat' <-> 'ate' ) <2> 'rat'
366+ 'cat' <-> 'ate' <2> 'rat'
367367</programlisting>
368368 </para>
369+ <para>
370+ The precedence of tsquery operators is as follows: <literal>|</literal>, <literal>&</literal>,
371+ <literal><-></literal>, <literal>!</literal>.
372+ </para>
369373 </sect2>
370374
371375 <sect2 id="textsearch-intro-configurations">
@@ -923,7 +927,7 @@ SELECT phraseto_tsquery('english', 'The Fat Rats');
923927SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
924928 phraseto_tsquery
925929-----------------------------
926- ( 'fat' <-> 'rat' ) <-> 'c'
930+ 'fat' <-> 'rat' <-> 'c'
927931</screen>
928932 </para>
929933
You can’t perform that action at this time.
0 commit comments