Re: Should phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue') be true ?

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: obartunov(at)gmail(dot)com, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jean-Pierre Pelletier <jppelletier(at)e-djuster(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Should phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue') be true ?
Date: 2016-06-15 16:56:15
Message-ID: 576188AF.400@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> We need to reach a consensus here, since there is no way to say "I don't know".
> I inclined to agree with you, that returning false is better in such a
> case.That will
> indicate user to the source of problem.

Here is a patch, now phrase operation returns false if there is not postion
information. If this behavior looks more reasonable, I'll commit that.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

Attachment Content-Type Size
phrase_no_fallback.patch binary/octet-stream 8.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jimmy 2016-06-15 16:58:43 Re: pg_isready features
Previous Message Imre Samu 2016-06-15 16:53:03 Re: pg_isready features