Re: Ayuda con FULL TEXT SEARCH

From: Eduardo Morras <nec556(at)retena(dot)com>
To: Rodolfo Paparás <rodo(at)globalmargin(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Ayuda con FULL TEXT SEARCH
Date: 2011-07-25 21:23:47
Message-ID: 4D7F86D501A32255@
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

At 22:13 25/07/2011, Rodolfo Paparás wrote:

>SELECT * FROM atributos_contactos WHERE
>valor_cadena_index @@ to_tsquery('bilingue');
>
>descarta muchos registros.
>
>Con respecto a la palabra "bilingue", es verdad
>que es un ejemplo rebuscado, pero estoy buscando
>en el texto de curriculums personas con esa capacidad.
>
>Alguna otra idea?

En

http://www.postgresql.org/docs/9.1/static/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES

viene como incluir los prefijos:

Also, * can be attached to a lexeme to specify prefix matching:

SELECT to_tsquery('supern:*A & star:A*B');
to_tsquery
--------------------------
'supern':*A & 'star':*AB

Such a lexeme will match any word in a tsvector
that begins with the given string.

HTH

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Rodolfo Paparás 2011-07-25 22:28:28 Re: Ayuda con FULL TEXT SEARCH
Previous Message Alvaro Herrera 2011-07-25 20:56:21 Re: Ayuda con FULL TEXT SEARCH