Re: tsearch - v2 new dict - Mailing list pgsql-general

From Oleg Bartunov
Subject Re: tsearch - v2 new dict
Date
Msg-id Pine.GSO.4.56.0306131857050.19002@ra.sai.msu.su
Whole thread Raw
In response to tsearch - v2 new dict  (sector119@mail.ru)
Responses Re: tsearch - v2 new dict  (Sergei Levchenko <serg@city.gov.te.ua>)
List 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@mail.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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Choosing Between PL/PGSQL or C/C++ for Triggers/Store
Next
From: Tom Lane
Date:
Subject: Re: Insert NULL for ''