From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: paco@hernandezgomez.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14278: Problem searching spanish words with accent mark outside the stem
Date: Mon, 8 Aug 2016 00:58:47 -0400
Message-ID: <20160808045847.GA878137@alvherre.pgsql> (raw)
In-Reply-To: <20160804102524.1430.90715@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
paco@hernandezgomez.com wrote:
> Search without accent mark is not working correctly when the accent mark is
> outside the stem of the word.
I think it'd be better to apply unaccent() to both the stored text
before ts_vectorization and to the query terms. That would reliably
remove all diacritics (eñes too, though I suppose nobody would search
for their ñandúes by writing nandú, so it's not as severe).
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, paco@hernandezgomez.com
Subject: Re: BUG #14278: Problem searching spanish words with accent mark outside the stem
In-Reply-To: <20160808045847.GA878137@alvherre.pgsql>
References: <20160804102524.1430.90715@wrigleys.postgresql.org> <20160808045847.GA878137@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox