|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/greek/
Дата изменения: Unknown Дата индексирования: Sat Dec 22 10:27:25 2007 Кодировка: IBM-866 Поисковые слова: http www.badastronomy.com bad tv foxapollo.html |
gmake ZIPFILE=el_GR LANGUAGE=el_GR
iconv -t utf-8 -f iso-8859-7 el_GR.aff > el_GR_utf8.aff iconv -t utf-8 -f iso-8859-7 el_GR.dict > el_GR_utf8.dict
( mkdir -p /tmp/greek.utf8 && mv el_GR_utf8.aff el_GR_utf8.dict /tmp/greek.utf8 )
initdb -D /usr/local/pgsql-dev/data.el_utf8 --locale=el_GR.utf8 pg_ctl -D /usr/local/pgsql-dev/data.el_utf8 start createdb test psql test < /usr/local/pgsql-dev/share/contrib/tsearch2.sql
psql test < tscfg-el.utf8.sql
Please, notice, tsearch2 configured (tscfg-el.utf8.sql) for testing purposes only !
test=# set client_encoding='ISO-8859-7';
SET
test=# select dict_name,dict_initoption from pg_ts_dict where dict_name = 'el_ispell';
el_ispell | DictFile="tmp/greek.utf8/el_GR_utf8.dic",AffFile="tmp/greek.utf8/el.u8.aff"
test=# select * from pg_ts_cfgmap where ts_name='utf8';
ts_name | tok_alias | dict_name
---------+--------------+-------------
utf8 | nlhword | {el_ispell}
utf8 | nlword | {el_ispell}
utf8 | nlpart_hword | {el_ispell}
(3 rows)
test=# select lexize('el_ispell','сусЕчшх‹?х');
lexize
-----------
{сусЕчш”}
(1 row)
test=# select lexize('el_ispell','?хых??с‹•?');
lexize
--------------
{?хых??с‹я?}
(1 row)