The following bug has been logged on the website:

Bug reference:      7780
Logged by:          Giorgio Gallo
Email address:      giorgio.ga...@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 via email to