Re: tsearch- lexema palabra con acento

From: Emanuel Calvo <emanuel(dot)calvo(at)2ndquadrant(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: tsearch- lexema palabra con acento
Date: 2014-07-04 21:34:51
Message-ID: 53B71DFB.8080702@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

El 04/07/14 11:18, Felipe de Jesús Molina Bravo escribió:
> Que tal
>
> No entiendo el siguiente comportamiento:
>
> replicaee=# select to_tsvector('maria'), to_tsvector('maría');
> to_tsvector | to_tsvector -------------+------------- 'mari':1 |
> 'mar':1 **** diferente lexema ... error!!! (1 fila)
>

No es un error. Es como funciona el stemming. El fin último es reducir
al stem original de las palabras similares.

Podrías llegar a utilizar ispell o theasurus en vez de snowball.

Un link muy util es
http://sharingtechknowledge.blogspot.com/2012/02/postgresql-thesaurus-dictionary.html

- --
- --
Emanuel Calvo http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Bs. As., Argentina (GMT-3)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJTtx37AAoJEIBeI/HMagHmtm0P/iKWOzYx812v1OpNfA1KYb13
GesJPkxKyRm8I/OK7qMBAzernx5FNk8to9k1dz7SX+fwHIgcT/e8TQzBp6ssGK3A
B+r9yS+ZIjeUuNgOIyl4uHvDpW/g+ECPRrHtz4ve4suv6DArMnSSDiYzX0gpwD8B
UkEyQ7OD9nWfMB0ZJMcuTEWx2Vmp5tPchg1uXcGik7qWpClx171MgvKstzAVs37s
LhjLZVVIXE02ysvf4vrZAjlxipbmoDwdlWJlMms1of+TDQ33aioAJeY3Y1v5N8ZV
mYECmzBH/IrBUviOBEKAhDaUP3pyrszVH6h4vETrXK/gF30zoCLCh5Hx7y+QavcQ
LSFVnkoqmj8J/XmiGEuo+oMvwWDZqvSwRwhstWr08tvBAK55QMTZKKzICv4DXiCU
m1o6Q1ksU6ObHw1As5YIckxs+qww6Z3ugJDfMRluJIPDAAiDufEtD6kpGvS8Vw8c
lTYOoWE9wY7AHPzgvnZVtzjYKsXF717WESwIHYFnWQcyU3KECV/rLd2c2IYB0M5O
/97Y7KbK1g279snTsZjknWtTMSt/FeTUNtNCdu8KIMaADxRgHGeGmfHXJ3nVevVu
cU46ULwPWhL4zmAMLmd5yDEqUBFywTNkKTw+eJC/AsMJYwj3htNj0DPTA/ERb2tE
fmUc80E6zqVTlUYQERut
=9YoD
-----END PGP SIGNATURE-----

-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripcin:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Felipe de Jesús Molina Bravo 2014-07-07 18:44:27 Re: tsearch- lexema palabra con acento
Previous Message Felipe de Jesús Molina Bravo 2014-07-04 14:18:20 tsearch- lexema palabra con acento