Phrase search distance syntax

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Phrase search distance syntax
Дата
Msg-id 20160923132029.GA26867@momjian.us
обсуждение исходный текст
Ответы Re: Phrase search distance syntax  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
Sorry to be asking another phrase search syntax question, and so close
to final release, but ...

Why does the phrase distance operator assume <1> means adjacent words,
and not <0>.  (FYI, <-> is the same as <1>.)

For example:
 select to_tsvector('park a a house') @@ to_tsquery('park <3> house');

seems like it would be more logical as <2>, meaning two lexems between
the words.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Speed up Clog Access by increasing CLOG buffers
Следующее
От: Robert Haas
Дата:
Сообщение: Re: asynchronous and vectorized execution