Re: OR tsquery

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: OR tsquery
Date: 2010-01-16 16:10:45
Message-ID: Pine.LNX.4.64.1001161909440.16860@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan,

did you ever read official documentation ?
http://www.postgresql.org/docs/8.4/static/textsearch-controls.html

Oleg
On Sat, 16 Jan 2010, Ivan Sergio Borgonovo wrote:

> to_tsquery and plainto_tsquery produce AND tsquery
> 'apple banana orange' -> 'apple' & 'banana' & 'orange'
> I can't see anything that will produce OR tsquery.
> 'apple banana orange' -> 'apple' | 'banana' | 'orange'
>
> The only thing I can think of is looping on ts_lexize that looks not
> very efficient in plpgsql.
>
> Am I missing something?
>
> thanks
>
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

  • OR tsquery at 2010-01-16 14:32:06 from Ivan Sergio Borgonovo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2010-01-16 16:15:32 Re: Avoid transaction abot if/when constraint violated
Previous Message Tom Lane 2010-01-16 16:05:57 Re: OR tsquery