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-17 09:57:56
Message-ID: Pine.GSO.4.56.0306171335520.16134@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have you read

http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/tsearchV2-intro.txt

I don't see you have added 'ua' configuration into pg_ts_cfg

Oleg

On Tue, 17 Jun 2003 sector119(at)mail(dot)ru wrote:

> On Fri, 13 Jun 2003 18:58:19 +0400 (MSD)
> Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> wrote:
>
> > You mixed stemmer and morphology ! These are two different
> > dictionaries.
>
> ispell_ua - it's morphology dictionary,yes? I add this dictionary :)
> And now I have to add stemmer dictionary :) but how? how am I able to do
> that, or where am I able to read about that?
> +:)
>
> because without it I've got en error:
> SELECT txt2txtidx('ua','a lot of ukrainian words');
> ERROR: No dictionary
>
> > btw, I suggest you using 'ua' instead of 'uk' :-)
> ok :) I change uk -> ua :)
>
> test=# SELECT * FROM pg_ts_cfgmap WHERE ts_name = 'ua';
> ts_name | lex_alias | dict_name
> ---------+-------------+---------------------
> ua | file | {simple}
> ua | lhword | {ispell_ua,ua_stem}
> ua | lpart_hword | {ispell_ua,ua_stem}
> ua | lword | {ispell_ua,ua_stem}
> ua | uint | {simple}
> ua | version | {simple}
>
> test=# SELECT * FROM pg_ts_dict WHERE dict_id = 6;
> dict_id | 6
> dict_name | ispell_ua
> 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 ispell
>
>

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 Mattias Kregert 2003-06-17 10:04:16 Re: full featured alter table?
Previous Message Kaarel 2003-06-17 09:57:08 Re: Postgres performance comments from a MySQL user