From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | marcelo Cortez <jmdc_marcelo(at)yahoo(dot)com(dot)ar> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: fts error |
Date: | 2005-07-13 18:14:05 |
Message-ID: | Pine.GSO.4.63.0507132213080.1399@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 13 Jul 2005, marcelo Cortez wrote:
> hi folks
>
> the follow script fail
>
> select to_tsquery('hello world ');
> -> ERROR: syntax error
> how to catch this error, any clue?
by definition :)
read http://www.sai.msu.su/~megera/oddmuse/index.cgi/tsearch-v2-intro
Lets attempt to use the function with a string of multiple words:
SELECT to_tsquery('default', 'this is many words');
ERROR: Syntax error
The function can not accept a space separated string. The intention of the
to_tsquery function is to return a type of "tsquery" used for searching a tsvector field. What we need to do is search for one to many words with some kind of logic (for now simple boolean).
>
> best regards
> mdc
>
>
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ?gratis!
> ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | markMLl.pgsql-general | 2005-07-13 18:15:12 | Re: Nulls in timestamps |
Previous Message | Tom Lane | 2005-07-13 18:10:12 | Re: index bloat |