diff options
author | Bruce Momjian <bruce@momjian.us> | 2014-03-24 14:36:36 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2014-03-24 14:37:16 -0400 |
commit | 1420f3a9827a39e5c6c998f6fa35a6fc97903145 (patch) | |
tree | cf2a72a44f59cd9dcdffb986f56b1237f627fcee /doc/src | |
parent | bb42e21be274a71f6868ce2fc8fae2c15c3ecf66 (diff) | |
download | postgresql-1420f3a9827a39e5c6c998f6fa35a6fc97903145.tar.gz postgresql-1420f3a9827a39e5c6c998f6fa35a6fc97903145.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/textsearch.sgml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/src/sgml/textsearch.sgml b/doc/src/sgml/textsearch.sgml index 604e54579de..9e78286bb59 100644 --- a/doc/src/sgml/textsearch.sgml +++ b/doc/src/sgml/textsearch.sgml @@ -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> |