tsearch - v2 new dict

From: sector119(at)mail(dot)ru
To: pgsql-general(at)postgresql(dot)org
Subject: tsearch - v2 new dict
Date: 2003-06-13 14:33:19
Message-ID: 20030613143319.GA6360@city.gov.te.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi
I try to add new dict,but I've get an error

$mars->{sector119}:~ % ls -la /usr/local/pgsql/share/ukrainian*
-rw-r--r-- 1 root root 59504 2 2000
/usr/local/pgsql/share/ukrainian.aff
-rw-r--r-- 1 root root 1355320 2 2000
/usr/local/pgsql/share/ukrainian.dict
lrwxrwxrwx 1 root root 14 13 09:23
/usr/local/pgsql/share/ukrainian.hash -> ukrainian.dict
-rw-r--r-- 1 root root 699 13 17:14
/usr/local/pgsql/share/ukrainian.stop

test=# SELECT * from pg_ts_cfg where id=4;
id | ts_name | prs_name | locale
----+---------+----------+--------
4 | uk | default | uk_UA

test=# SELECT * from pg_ts_cfgmap where ts_name='uk';
ts_name | lex_alias | dict_name
---------+-------------+-----------
uk | file | {simple}
uk | lhword | {uk_stem}
uk | lpart_hword | {uk_stem}
uk | lword | {uk_stem}
uk | uint | {simple}
uk | version | {simple}
(6 rows)

test=# SELECT * from pg_ts_dict where dict_id=6;
dict_id | 6
dict_name | uk_stem
dict_init | 17632
dict_initoption |
DictFile="/usr/local/pgsql/share/ukrainian.hash",
AffFile="/usr/local/pgsql/share/ukrainian.aff",
StopFile="/usr/local/pgsql/share/ukrainian.stop
dict_lemmatize | 17633
dict_comment | Ukrainian Stemmer. Snowball.

test=# SELECT txt2txtidx('uk','alot of words in ukrainian');
ERROR: Unexpected end of line

Why I get this error message?

If I did something wrong, please say me what I have to change!

Thank you!
--
WBR, sector119

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-06-13 14:34:00 Re: Insert NULL for ''
Previous Message Robert Treat 2003-06-13 14:33:11 Re: [HACKERS] SAP and MySQL ... [and Benchmark]