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

Commit5bba494

Browse files
committed
Document that text search comparisons happen after text search
configuration rules.Erik Rijkers
1 parent82220e8 commit5bba494

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3847,7 +3847,28 @@ SELECT 'super:*'::tsquery;
38473847
'super':*
38483848
</programlisting>
38493849
This query will match any word in a <type>tsvector</> that begins
3850-
with <quote>super</>.
3850+
with <quote>super</>.
3851+
</para>
3852+
3853+
<para>
3854+
Note that text search configuration processing happens before
3855+
comparisons, which means this comparison returns <literal>true</>:
3856+
<programlisting>
3857+
SELECT to_tsvector( 'postgraduate' ) @@ to_tsquery( 'postgres:*' );
3858+
?column?
3859+
----------
3860+
t
3861+
(1 row)
3862+
</programlisting>
3863+
because <literal>postgres</> gets stemmed to <literal>postgr</>:
3864+
<programlisting>
3865+
SELECT to_tsquery('postgres:*');
3866+
to_tsquery
3867+
------------
3868+
'postgr':*
3869+
(1 row)
3870+
</programlisting>
3871+
which then matches <literal>postgraduate</>.
38513872
</para>
38523873

38533874
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp