aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2018-06-13 18:31:18 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2018-06-13 18:32:03 +0300
commit476ba1ec98a70a67bad8af7d178fb56e3df5aa9b (patch)
treefc9ff5de020a5753f7348bd4bc71bf96e7fef522
parent2ce64caaf793615d0f7a7ce4380e7255077d130c (diff)
downloadpostgresql-476ba1ec98a70a67bad8af7d178fb56e3df5aa9b.tar.gz
postgresql-476ba1ec98a70a67bad8af7d178fb56e3df5aa9b.zip
Documentation improvement for pg_trgm
Documentation of word_similarity() and strict_word_similarity() functions contains some vague wordings which could confuse users. This patch makes those wordings more clear. word_similarity() was introduced in PostgreSQL 9.6, and corresponding part of documentation needs to be backpatched. Author: Bruce Momjian, Alexander Korotkov Discussion: https://postgr.es/m/20180526165648.GB12510%40momjian.us Backpatch: 9.6, where word_similarity() was introduced
-rw-r--r--doc/src/sgml/pgtrgm.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml
index 2613c7a3d5c..350da77104e 100644
--- a/doc/src/sgml/pgtrgm.sgml
+++ b/doc/src/sgml/pgtrgm.sgml
@@ -153,8 +153,8 @@
This function returns a value that can be approximately understood as the
greatest similarity between the first string and any substring of the second
string. However, this function does not add padding to the boundaries of
- the extent. Thus, a whole word match gets a higher score than a match with
- a part of the word.
+ the extent. Thus, the number of additional characters present in the
+ second string is not considered, except for the mismatched word boundry.
</para>
<table id="pgtrgm-op-table">