Re: tsearch2: plainto_tsquery() with OR?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: cluster <skrald(at)amossen(dot)dk>, pgsql-general(at)postgresql(dot)org
Subject: Re: tsearch2: plainto_tsquery() with OR?
Date: 2007-08-09 05:09:15
Message-ID: 3797.1186636155@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> On Wed, 8 Aug 2007, cluster wrote:
>> Does anyone know where I can request an OR-version of plainto_tsquery()?

> plainto_tsquery expects plain text, use to_tsquery for boolean operators.

Are either of these definitions really right? If I type "foo bar baz"
into Google, for instance, it seems to produce some sort of weighted
result, neither a strict AND nor a strict OR. Google didn't get where
they are by misjudging what the simplest search behavior should be like.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2007-08-09 05:34:15 Re: tsearch2: plainto_tsquery() with OR?
Previous Message Oleg Bartunov 2007-08-09 04:55:06 Re: tsearch2: plainto_tsquery() with OR?