Обсуждение: BUG #12857: Our company want to create dictionary

Поиск
Список
Период
Сортировка

BUG #12857: Our company want to create dictionary

От
abusoft92@gmail.com
Дата:
The following bug has been logged on the website:

Bug reference:      12857
Logged by:          NewServiceArt
Email address:      abusoft92@gmail.com
PostgreSQL version: 9.4.1
Operating system:   All
Description:

Dear developers,we use PostgreSQL DB for our projects and we want to create
library in kazakh language dictionary for full text search
Sincerely NewServiceArt ,Astana,Kazakhstan

Re: BUG #12857: Our company want to create dictionary

От
Artur Zakirov
Дата:
12.03.2015 14:16, abusoft92@gmail.com пишет:
>
> Dear developers,we use PostgreSQL DB for our projects and we want to create
> library in kazakh language dictionary for full text search
> Sincerely NewServiceArt ,Astana,Kazakhstan
>
Maybe it is too late. But you can download hunspell dictionary from
http://ftp.ru.debian.org/debian/pool/main/h/hunspell-kk/hunspell-kk_1.1-2_all.deb

Extract files kk_KZ.dic and kk_KZ.aff. Rename them accordingly to
kk_KZ.dict and kk_KZ.affix and copy to the folder $SHAREDIR/tsearch_data/.

And create ispell dictionary:

CREATE TEXT SEARCH DICTIONARY kazakh_ispell (
     TEMPLATE = ispell,
     DictFile = kk_KZ,
     AffFile = kk_KZ
);

More information about ispell dictionaries:
http://www.postgresql.org/docs/devel/static/textsearch-dictionaries.html#TEXTSEARCH-ISPELL-DICTIONARY

--
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company