aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2014-03-24 14:36:36 -0400
committerBruce Momjian <bruce@momjian.us>2014-03-24 14:37:16 -0400
commit1420f3a9827a39e5c6c998f6fa35a6fc97903145 (patch)
treecf2a72a44f59cd9dcdffb986f56b1237f627fcee /doc/src
parentbb42e21be274a71f6868ce2fc8fae2c15c3ecf66 (diff)
downloadpostgresql-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.sgml10
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 &amp; Rats:C');
</para>
<para>
- This function requires positional information in its input.
- Therefore it will not work on <quote>stripped</> <type>tsvector</>
- values &mdash; 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>