Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9975c128
Commit
9975c128
authored
Apr 23, 2018
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update trigram example in docs to correct state
Author: Liudmila Mantrova
parent
6db4b499
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/src/sgml/pgtrgm.sgml
doc/src/sgml/pgtrgm.sgml
+3
-3
No files found.
doc/src/sgml/pgtrgm.sgml
View file @
9975c128
...
@@ -152,9 +152,9 @@
...
@@ -152,9 +152,9 @@
</programlisting>
</programlisting>
In the first string, the set of trigrams is
In the first string, the set of trigrams is
<literal>{" w"," wo","
ord","wor
","rd "}</literal>.
<literal>{" w"," wo","
wor","ord
","rd "}</literal>.
In the second string, the ordered set of trigrams is
In the second string, the ordered set of trigrams is
<literal>{" t"," tw",
two,"wo "," w"," wo","wor","ord","rds",
ds "}</literal>.
<literal>{" t"," tw",
"two","wo "," w"," wo","wor","ord","rds","
ds "}</literal>.
The most similar extent of an ordered set of trigrams in the second string
The most similar extent of an ordered set of trigrams in the second string
is <literal>{" w"," wo","wor","ord"}</literal>, and the similarity is
is <literal>{" w"," wo","wor","ord"}</literal>, and the similarity is
<literal>0.8</literal>.
<literal>0.8</literal>.
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
At the same time, <function>strict_word_similarity(text, text)</function>
At the same time, <function>strict_word_similarity(text, text)</function>
has to select an extent that matches word boundaries. In the example above,
has to select an extent that matches word boundaries. In the example above,
<function>strict_word_similarity(text, text)</function> would select the
<function>strict_word_similarity(text, text)</function> would select the
extent <literal>{" w"," wo","wor","ord","rds",
ds "}</literal>, which
extent <literal>{" w"," wo","wor","ord","rds",
"
ds "}</literal>, which
corresponds to the whole word <literal>'words'</literal>.
corresponds to the whole word <literal>'words'</literal>.
<programlisting>
<programlisting>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment