mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Document that text search comparisons happen after text search
configuration rules. Erik Rijkers
This commit is contained in:
@@ -3850,6 +3850,27 @@ SELECT 'super:*'::tsquery;
|
|||||||
with <quote>super</>.
|
with <quote>super</>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Note that text search configuration processing happens before
|
||||||
|
comparisons, which means this comparison returns <literal>true</>:
|
||||||
|
<programlisting>
|
||||||
|
SELECT to_tsvector( 'postgraduate' ) @@ to_tsquery( 'postgres:*' );
|
||||||
|
?column?
|
||||||
|
----------
|
||||||
|
t
|
||||||
|
(1 row)
|
||||||
|
</programlisting>
|
||||||
|
because <literal>postgres</> gets stemmed to <literal>postgr</>:
|
||||||
|
<programlisting>
|
||||||
|
SELECT to_tsquery('postgres:*');
|
||||||
|
to_tsquery
|
||||||
|
------------
|
||||||
|
'postgr':*
|
||||||
|
(1 row)
|
||||||
|
</programlisting>
|
||||||
|
which then matches <literal>postgraduate</>.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Quoting rules for lexemes are the same as described previously for
|
Quoting rules for lexemes are the same as described previously for
|
||||||
lexemes in <type>tsvector</>; and, as with <type>tsvector</>,
|
lexemes in <type>tsvector</>; and, as with <type>tsvector</>,
|
||||||
|
Reference in New Issue
Block a user