Re: OR tsquery - Mailing list pgsql-general

From Oleg Bartunov
Subject Re: OR tsquery
Date
Msg-id Pine.LNX.4.64.1001161909440.16860@sn.sai.msu.ru
Whole thread Raw
In response to OR tsquery  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Responses Re: OR tsquery  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List 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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: OR tsquery
Next
From: Dimitri Fontaine
Date:
Subject: Re: Avoid transaction abot if/when constraint violated