FTS question - Mailing list pgsql-general

From Damjan Rems
Subject FTS question
Date
Msg-id 335679.14254.qm@web55204.mail.re4.yahoo.com
Whole thread Raw
Responses Re: FTS question
Re: FTS question
List pgsql-general
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.
Postgresqlis v8.3.1. 


by
TheR




pgsql-general by date:

Previous
From: "EBIHARA, Yuichiro"
Date:
Subject: Re: server log files
Next
From: sheikh salman
Date:
Subject: Query Fails