Re: FTS question
Oleg Bartunov <oleg <at> sai.msu.su>
2008-07-01 07:45:41 GMT
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) <at> <at> 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) <at> <at> 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 <at> sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
--
--
(Continue reading)