Rework word_similarity documentation, make it close to actual algorithm.
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 21 Mar 2018 11:35:56 +0000 (14:35 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 21 Mar 2018 11:35:56 +0000 (14:35 +0300)
commitaea7c17e86e99a7ed4da489b3df2b5493b5e5e95
tree206592b16b906be4902efb59eb1bb02a7fa08eec
parentd652e3525b8ff988db717ed66c467b6fd78a32bc
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
contrib/pg_trgm/trgm_op.c
doc/src/sgml/pgtrgm.sgml