Hunspell as filtering dictionary
От | Bibi Mansione |
---|---|
Тема | Hunspell as filtering dictionary |
Дата | |
Msg-id | CACZ67_U8Vu66-kPRj_v2icmn_wmz9_LDM8Tv_tvptKKwBXD2tQ@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Hunspell as filtering dictionary
|
Список | pgsql-general |
CREATE TEXT SEARCH CONFIGURATION fr_conf (copy='simple');
ALTER TEXT SEARCH CONFIGURATION fr_conf
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
word, hword, hword_part
WITH unaccent, french_hunspell;
select * from to_tsvector('fr_conf', E'Pour découvrir et rencontrer l\'aventure.');
-- 'aventure':5 'aventurer':5 'rencontrer':3
But the verb "découvrir" is missing :(
If I try with french_hunspell only, I get it, but with the accent:
select * from to_tsvector('french_hunspell', E'Pour découvrir et rencontrer l\'aventure.');
-- 'aventure':6 'aventurer':6 'découvrir':2 'rencontrer':4
CREATE TEXT SEARCH CONFIGURATION fr_conf2 (copy='simple');
ALTER TEXT SEARCH CONFIGURATION fr_conf2
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
word, hword, hword_part
WITH french_hunspell, unaccent;
select * from to_tsvector('fr_conf2', E'Pour découvrir et rencontrer l\'aventure.');
-- 'aventure':5 'aventurer':5 'rencontrer':3
-- 'aventure':6 'aventurer':6 'decouvrir':2 'rencontrer':4
В списке pgsql-general по дате отправления: