Phrase search distance syntax - Mailing list pgsql-hackers

From Bruce Momjian
Subject Phrase search distance syntax
Date
Msg-id 20160923132029.GA26867@momjian.us
Whole thread Raw
Responses Re: Phrase search distance syntax  (Teodor Sigaev <teodor@sigaev.ru>)
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Speed up Clog Access by increasing CLOG buffers
Next
From: Robert Haas
Date:
Subject: Re: asynchronous and vectorized execution