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');
358
358
SELECT phraseto_tsquery('cats ate rats');
359
359
phraseto_tsquery
360
360
-------------------------------
361
- ( 'cat' <-> 'ate' ) <-> 'rat'
361
+ 'cat' <-> 'ate' <-> 'rat'
362
362
363
363
SELECT phraseto_tsquery('the cats ate the rats');
364
364
phraseto_tsquery
365
365
-------------------------------
366
- ( 'cat' <-> 'ate' ) <2> 'rat'
366
+ 'cat' <-> 'ate' <2> 'rat'
367
367
</programlisting>
368
368
</para>
369
+ <para>
370
+ The precedence of tsquery operators is as follows: <literal>|</literal>, <literal>&</literal>,
371
+ <literal><-></literal>, <literal>!</literal>.
372
+ </para>
369
373
</sect2>
370
374
371
375
<sect2 id="textsearch-intro-configurations">
@@ -923,7 +927,7 @@ SELECT phraseto_tsquery('english', 'The Fat Rats');
923
927
SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
924
928
phraseto_tsquery
925
929
-----------------------------
926
- ( 'fat' <-> 'rat' ) <-> 'c'
930
+ 'fat' <-> 'rat' <-> 'c'
927
931
</screen>
928
932
</para>
929
933
You can’t perform that action at this time.
0 commit comments