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 @@ -387,14 +387,18 @@ SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
387387SELECT phraseto_tsquery('cats ate rats');
388388 phraseto_tsquery
389389-------------------------------
390- ( 'cat' <-> 'ate' ) <-> 'rat'
390+ 'cat' <-> 'ate' <-> 'rat'
391391
392392SELECT phraseto_tsquery('the cats ate the rats');
393393 phraseto_tsquery
394394-------------------------------
395- ( 'cat' <-> 'ate' ) <2> 'rat'
395+ 'cat' <-> 'ate' <2> 'rat'
396396</programlisting>
397397 </para>
398+ <para>
399+ The precedence of tsquery operators is as follows: <literal>|</literal>, <literal>&</literal>,
400+ <literal><-></literal>, <literal>!</literal>.
401+ </para>
398402 </sect2>
399403
400404 <sect2 id="textsearch-intro-configurations">
@@ -948,7 +952,7 @@ SELECT phraseto_tsquery('english', 'The Fat Rats');
948952SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
949953 phraseto_tsquery
950954-----------------------------
951- ( 'fat' <-> 'rat' ) <-> 'c'
955+ 'fat' <-> 'rat' <-> 'c'
952956</screen>
953957
954958 It is possible to specify the configuration to be used to parse the document,
You can’t perform that action at this time.
0 commit comments