Re: FTS uses "tsquery" directly in the query

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: xu fei <autofei(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: FTS uses "tsquery" directly in the query
Date: 2010-01-24 07:11:41
Message-ID: Pine.LNX.4.64.1001241010570.16860@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Xu,

FTS has nothing with your problem, it's general limitation/feature.

Oleg
On Sat, 23 Jan 2010, xu fei wrote:

> Hi, everyone:
> First I can successful run this query:select name, ts_rank_cd(vectors, query) as rank from element, to_tsquery('item') query where query @@ vectors order by rank desc;But actually I want to run this one:select name, ts_rank_cd(vectors, query) as rank from element, 'item'::tsquery query where query @@ vectors order by rank desc;Looks like that FTS does not support directly use "::tsquery " in such query. Do I misunderstand something?  Thanks!
> Xu
>
>
>

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2010-01-24 09:51:51 Re: Recursion in triggers?
Previous Message Gauthier, Dave 2010-01-24 04:36:19 Recursion in triggers?