Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7cb279a

Browse files
feodordmpgpro
authored andcommitted
Document precedence of FTS operators in tsquery
Oleg Bartunov
1 parentdcabf52 commit7cb279a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎doc/src/sgml/textsearch.sgml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,14 +387,18 @@ SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
387387
SELECT phraseto_tsquery('cats ate rats');
388388
phraseto_tsquery
389389
-------------------------------
390-
('cat' <-> 'ate' ) <-> 'rat'
390+
'cat' <-> 'ate' <-> 'rat'
391391

392392
SELECT 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>&amp;</literal>,
400+
<literal>&lt;-&gt;</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');
948952
SELECT phraseto_tsquery('english', 'The Fat &amp; Rats:C');
949953
phraseto_tsquery
950954
-----------------------------
951-
('fat' &lt;-&gt; 'rat' ) &lt;-&gt; 'c'
955+
'fat' &lt;-&gt; 'rat' &lt;-&gt; 'c'
952956
</screen>
953957

954958
It is possible to specify the configuration to be used to parse the document,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp