Re: tsearch - v2 new dict

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: sector119(at)mail(dot)ru
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: tsearch - v2 new dict
Date: 2003-06-13 14:58:19
Message-ID: Pine.GSO.4.56.0306131857050.19002@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You mixed stemmer and morphology ! These are two different dictionaries.

btw, I suggest you using 'ua' instead of 'uk' :-)

On Fri, 13 Jun 2003 sector119(at)mail(dot)ru wrote:

> 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!
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-06-13 14:59:46 Re: Insert NULL for ''
Previous Message Tom Lane 2003-06-13 14:56:22 Re: [HACKERS] SAP and MySQL ... [and Benchmark]