From: giorgio.gallo@bitnic.it
To: pgsql-bugs@postgresql.org
Subject: BUG #7780: unaccent extension - dictionary not filtering?
Date: Tue, 01 Jan 2013 22:09:05 +0000
Message-ID: <E1TqA1B-0000s1-Uc@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: 7780
Logged by: Giorgio Gallo
Email address: giorgio.gallo@bitnic.it
PostgreSQL version: 9.1.7
Operating system: OSX
Description:
Ciao
I'm working to set up full-text search and I enabled the "unaccent"
extension.
The "unaccent" dictionary however does not seem to behave as a filtering
dict, but rather as a "normal" one...
Am I doing anything wrong or is this in fact a postgres issue?
Version:
PostgreSQL 9.1.7 on x86_64-apple-darwin, compiled by
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3),
64-bit
Test script:
create extension if not exists "unaccent";
create text search configuration TEST_TSCFG (parser = DEFAULT);
alter text search configuration TEST_TSCFG alter mapping for asciiword, word
with UNACCENT, ITALIAN_STEM;
select * from ts_debug('TEST_TSCFG','HôTeL HoTeL');
drop text search configuration if exists TEST_TSCFG;
drop extension if exists "unaccent" restrict;
Output:
alias | description | token | dictionaries |
dictionary | lexemes
-----------+-------------------+-------+-------------------------+--------------+---------
word | Word, all letters | HôTeL | {unaccent,italian_stem} | unaccent
| {HoTeL}
blank | Space symbols | | {} |
|
asciiword | Word, all ASCII | HoTeL | {unaccent,italian_stem} |
italian_stem | {hotel}
--
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: giorgio.gallo@bitnic.it
Subject: Re: BUG #7780: unaccent extension - dictionary not filtering?
In-Reply-To: <E1TqA1B-0000s1-Uc@wrigleys.postgresql.org>
References: <E1TqA1B-0000s1-Uc@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