Satoshi Nagayasu <satoshi(dot)nagayasu(at)gmail(dot)com> writes:> I want to hit a row when I use 'a&b' or 'b&c' in a tsquery,> but not 'a&c'.
Wouldn't this do it?
tsvectorcol @@ '(a&b | b&c) & !(a&c)'
regards, tom lane