Re: FTS question - Mailing list pgsql-general

From Oleg Bartunov
Subject Re: FTS question
Date
Msg-id Pine.LNX.4.64.0807011145050.11363@sn.sai.msu.ru
Whole thread Raw
In response to FTS question  (Damjan Rems <d_rems@yahoo.com>)
List pgsql-general
On Mon, 30 Jun 2008, Damjan Rems wrote:

> I created a FTS index:
> CREATE INDEX clients_fts ON clients USING gist( to_tsvector( 'english', name) )
>
> I can do FTS queries like:
> SELECT * FROM clients
> WHERE to_tsvector('english',name) @@ to_tsquery( 'english','somestring');
>
> But if I want to query just part of the string return set is empty:
> SELECT * FROM clients
> WHERE to_tsvector('english',name) @@ to_tsquery( 'english','somes');
>
> returns no results.
>
> Is it that postgresql doesn't support substring queries or have I missed something. I can not find anything on the
net.Postgresql is v8.3.1. 
>

prefix search support will be supported in 8.4.

     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: sheikh salman
Date:
Subject: Query Fails
Next
From: Sheikh Salman Ahmed
Date:
Subject: Query Fails