[HACKERS] [Doc fix] Wrong explanation about tsquery_phrase

Поиск
Список
Период
Сортировка
От Seki, Eiji
Тема [HACKERS] [Doc fix] Wrong explanation about tsquery_phrase
Дата
Msg-id A11BD0E1A40FAC479D740CEFA373E203396AB26F@g01jpexmbkw05
обсуждение исходный текст
Ответы Re: [HACKERS] [Doc fix] Wrong explanation about tsquery_phrase  (Robert Haas <robertmhaas@gmail.com>)
Re: [HACKERS] [Doc fix] Wrong explanation about tsquery_phrase  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all,

I found a wrong explanation about tsquery_phrase. I was slightly confused when I tried to use it.

The current document explains tsquery_phrase as the followings[1].

- Function: tsquery_phrase(query1 tsquery, query2 tsquery, distance integer)
- Return Type: tsquery
- Description: make query that searches for query1 followed by query2 at maximum distance distance

However, 'exact distance' seems to be right instead of 'maximum distance'.

This was probably overlooked in the following commit.

028350f619f7688e0453fcd2c4b25abe9ba30fa7

[1] -- https://www.postgresql.org/docs/9.6/static/functions-textsearch.html

--
Regards,
Eiji Seki
Fujitsu

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: vinayak
Дата:
Сообщение: [HACKERS] ANALYZE command progress checker
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: [HACKERS] [PATCH] few fts functions for jsonb