BUG #7780: unaccent extension - dictionary not filtering?

From: giorgio(dot)gallo(at)bitnic(dot)it
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #7780: unaccent extension - dictionary not filtering?
Date: 2013-01-01 22:09:05
Message-ID: E1TqA1B-0000s1-Uc@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 7780
Logged by: Giorgio Gallo
Email address: giorgio(dot)gallo(at)bitnic(dot)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}

Browse pgsql-bugs by date

  From Date Subject
Next Message Hari Babu 2013-01-02 07:11:15 Re: Review of "pg_basebackup and pg_receivexlog to use non-blocking socket communication", was: Re: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown
Previous Message Boszormenyi Zoltan 2013-01-01 16:48:48 Review of "pg_basebackup and pg_receivexlog to use non-blocking socket communication", was: Re: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown