From 9975c128a1d1bd7e7366adf133b21540a2bc2450 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 23 Apr 2018 16:55:13 +0300 Subject: [PATCH] Update trigram example in docs to correct state Author: Liudmila Mantrova --- doc/src/sgml/pgtrgm.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml index 8f395296d8f..be43cdf2996 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'.