mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
Fix ts_rank_cd() to ignore stripped lexemes
Previously, stripped lexemes got a default location and could be considered if mixed with non-stripped lexemes. BACKWARD INCOMPATIBILITY CHANGE
This commit is contained in:
@@ -889,9 +889,13 @@ SELECT plainto_tsquery('english', 'The Fat & Rats:C');
|
||||
</para>
|
||||
|
||||
<para>
|
||||
This function requires positional information in its input.
|
||||
Therefore it will not work on <quote>stripped</> <type>tsvector</>
|
||||
values — it will always return zero.
|
||||
This function requires lexeme positional information to perform
|
||||
its calculation. Therefore, it ignores any <quote>stripped</>
|
||||
lexemes in the <type>tsvector</>. If there are no unstripped
|
||||
lexemes in the input, the result will be zero. (See <xref
|
||||
linkend="textsearch-manipulate-tsvector"> for more information
|
||||
about the <function>strip</> function and positional information
|
||||
in <type>tsvector</>s.)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user