Rework word_similarity documentation, make it close to actual algorithm.

Teodor Sigaev <teodor@sigaev.ru>

Commit: 4c7feb16116540091e9d3766350c70dbb3c525d7
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2018-03-21T11:37:51Z
Releases: 9.6.9
Rework word_similarity documentation, make it close to actual algorithm.

word_similarity before claimed as returning similarity of closest word in
string, but, actually it returns similarity of substring. Also fix mistyped
comments.

Author: Alexander Korotkov
Review by: David Steele, Liudmila Mantrova
Discussionis:
https://www.postgresql.org/message-id/flat/CY4PR17MB13207ED8310F847CF117EED0D85A0@CY4PR17MB1320.namprd17.prod.outlook.com
https://www.postgresql.org/message-id/flat/f43b242d-000c-f4c8-cb8b-d37e9752cd93%40postgrespro.ru

Files

PathChange+/−
contrib/pg_trgm/trgm_op.c modified +2 −2
doc/src/sgml/pgtrgm.sgml modified +42 −14

Documentation touched