File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments