From: Teodor Sigaev Date: Mon, 23 Apr 2018 13:55:13 +0000 (+0300) Subject: Update trigram example in docs to correct state X-Git-Tag: REL_11_BETA1~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9975c128a1d1bd7e7366adf133b21540a2bc2450;p=postgresql Update trigram example in docs to correct state Author: Liudmila Mantrova --- diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml index 8f395296d8..be43cdf299 100644 --- a/doc/src/sgml/pgtrgm.sgml +++ b/doc/src/sgml/pgtrgm.sgml @@ -152,9 +152,9 @@ In the first string, the set of trigrams is - {" w"," wo","ord","wor","rd "}. + {" w"," wo","wor","ord","rd "}. In the second string, the ordered set of trigrams is - {" t"," tw",two,"wo "," w"," wo","wor","ord","rds", ds "}. + {" t"," tw","two","wo "," w"," wo","wor","ord","rds","ds "}. The most similar extent of an ordered set of trigrams in the second string is {" w"," wo","wor","ord"}, and the similarity is 0.8. @@ -172,7 +172,7 @@ At the same time, strict_word_similarity(text, text) has to select an extent that matches word boundaries. In the example above, strict_word_similarity(text, text) would select the - extent {" w"," wo","wor","ord","rds", ds "}, which + extent {" w"," wo","wor","ord","rds","ds "}, which corresponds to the whole word 'words'.