pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: paco@hernandezgomez.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14278: Problem searching spanish words with accent mark outside the stem
Date: Thu, 04 Aug 2016 10:25:24 +0000
Message-ID: <20160804102524.1430.90715@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14278
Logged by:          Paco Hernández
Email address:      paco@hernandezgomez.com
PostgreSQL version: 9.6beta3
Operating system:   Linux
Description:        

Dear sirs:

Search without accent mark is not working correctly when the accent mark is
outside the stem of the word.

For example, this matches correctly:

postgres=# select to_tsvector('spanish', 'canción') @@ to_tsquery('spanish',
'cancion');
 ?column? 
----------
 t
(1 row)

This works and returns true because the stem of "canción" is "cancion", so
when we search for "cancion" (without accent mark), it matches correctly.

But, when the accent mark is outside the stem, for example in "peluquería",
then it does not work because the stem of "peluquería" is "peluqu", but
to_tsquery('spanish', 'peluqueria') is "peluqueri".

postgres=# select to_tsvector('spanish', 'peluquería') @@
to_tsquery('spanish', 'peluqueria');
 ?column? 
----------
 f
(1 row)

This is important because there are many people that don't use the accent
mark at letter "i" in "peluquería" and words like that.

Thank you very much.

Best regards,
Paco Hernández.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (4+ messages)  latest in thread

Message-ID: <20160804102524.1430.90715@wrigleys.postgresql.org>
Permalink:  ../20160804102524.1430.90715@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160804102524.1430.90715@wrigleys.postgresql.org

 · 

reply

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: paco@hernandezgomez.com
  Subject: Re: BUG #14278: Problem searching spanish words with accent mark outside the stem
  In-Reply-To: <20160804102524.1430.90715@wrigleys.postgresql.org>
  References: <20160804102524.1430.90715@wrigleys.postgresql.org>

* 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