Re: fulltext search stemming/ spelling problems

From: Corin <wakathane(at)gmail(dot)com>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, pgsql-general(at)postgresql(dot)org
Subject: Re: fulltext search stemming/ spelling problems
Date: 2010-04-08 20:54:38
Message-ID: 4BBE428E.6090607@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08.04.2010 21:27, Oleg Bartunov wrote:
> it means, that (from
> http://www.postgresql.org/docs/current/static/textsearch-dictionaries.html#TEXTSEARCH-ISPELL-DICTIONARY)
>
>
> 12.6.5. Ispell Dictionary
>
> The Ispell dictionary template supports morphological dictionaries,
> which can normalize many different linguistic forms of a word into the
> same lexeme. For example, an English Ispell dictionary can match all
> declensions and conjugations of the search term bank, e.g., banking,
> banked, banks, banks', and bank's.
I already read this but I don't know how to solve my problems with this
information.

SELECT ts_lexize('english_ispell','guitar');
{guitar}
(1 line)

SELECT ts_lexize('english_ispell','bank');
{bank}
(1 line)

SELECT ts_debug('english_ispell','bank');
(asciiword,"Word, all
ASCII",bank,"{english_ispell,english_stem}",english_ispell,{bank})
(1 line)

SELECT plainto_tsquery('english_ispell','bank');
'bank'
(1 line)
> Regards,
> Oleg
It would be very nice if you (or anyone else) could provide me with
concrete instructions or any howto. What can I do to find the error in
my setup? What output should I expect from the above comments if
everything worked correctly?

Thanks,
Corin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message sunpeng 2010-04-08 21:34:14 when i logged in mydb, any sql command used to list all the tables in this mydb?
Previous Message Alvaro Herrera 2010-04-08 20:35:37 Re: Removing files under pg_clog