From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Corin <wakathane(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: fulltext search stemming/ spelling problems |
Date: | 2010-04-08 18:15:59 |
Message-ID: | Pine.LNX.4.64.1004082213130.8023@sn.sai.msu.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, 8 Apr 2010, Corin wrote:
> Hi!
>
> I'm using postgres 8.4.3 and try to get stemming/ wrong word correction
> working.
>
> I already installed the myspell dictionaries using apt-get and created
> postgres dictionaries like this:
>
> Fulltext search configuration ?public.english_ispell?
> Parser: ?pg_catalog.default?
> Token | Dictionaries
> -----------------+------------------------------------
> asciihword | english_ispell,english_stem,simple
> asciiword | english_ispell,english_stem,simple
> email | simple
> file | simple
> float | simple
> host | simple
> hword | english_ispell,english_stem,simple
> hword_asciipart | english_ispell,english_stem,simple
> hword_numpart | simple
> hword_part | english_ispell,english_stem,simple
> int | simple
> numhword | simple
> numword | simple
> sfloat | simple
> uint | simple
> url | simple
> url_path | simple
> version | simple
> word | english_ispell,english_stem,simple
>
> But when I do, for example, SELECT to_tsvector('english_ispell', 'gitar') the
> result is only:
> 'gitar':1
>
> Shouldn't the word be corrected to 'guitar'?
english_ispell dictionary is a morphology kind of dictionary ! Read docs.
Also, simple dictionary will never invoked, since english_stem dictionary
recognizes everything !
>
> SELECT plainto_tsquery('english_ispell','gitar') doesn't work neither:
> 'gitar'
Better, use ts_debug() function or ts_dict() for testing.
>
> Thanks,
> Corin
>
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Corin | 2010-04-08 19:18:11 | Re: fulltext search stemming/ spelling problems |
Previous Message | Jeff Davis | 2010-04-08 18:02:10 | Re: Postgres doesn't seem to enforce array dimensions |