Re: [GENERAL] fts error

2005-07-13 Thread Joshua D. Drake

Oleg Bartunov wrote:

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?


Also there is a handy article over here:

http://www.devx.com/opensource/Article/21674/0





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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

---(end of broadcast)---
TIP 4: Have you searched our list archives?

  http://archives.postgresql.org



--
Your PostgreSQL solutions provider, Command Prompt, Inc.
24x7 support - 1.800.492.2240, programming, and consulting
Home of PostgreSQL Replicator, plPHP, plPerlNG and pgPHPToolkit
http://www.commandprompt.com / http://www.postgresql.org

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


Re: [GENERAL] fts error

2005-07-13 Thread Oleg Bartunov

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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

---(end of broadcast)---
TIP 4: Have you searched our list archives?

  http://archives.postgresql.org


[GENERAL] fts error

2005-07-13 Thread marcelo Cortez
hi folks

  the follow script fail 

  select to_tsquery('hello world '); 
-> ERROR:  syntax error
 how to catch this error, any clue?

 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