pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Corin <wakathane@gmail.com>
To: pgsql-general@postgresql.org
Subject: [Fwd: Re: fulltext search stemming/ spelling problems]
Date: Fri, 09 Apr 2010 15:53:19 +0200
Message-ID: <4BBF314F.8060308@gmail.com> (raw)

Hi,

nobody here who knows how to get the postgre fulltext working with 
ispell and stemming? :-(

So that when I search for 'gitar' also records containing 'guitar', 
'guitars', ... will be found.

Any help would be really appreciated! :)

Thanks,
Corin
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-DICTION...) 
>
>
> 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

view thread (2+ messages)  latest in thread

Message-ID: <4BBF314F.8060308@gmail.com>
Permalink:  ../4BBF314F.8060308@gmail.com/
Also on:    postgresql.org/message-id/4BBF314F.8060308@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: wakathane@gmail.com
  Subject: Re: [Fwd: Re: fulltext search stemming/ spelling problems]
  In-Reply-To: <4BBF314F.8060308@gmail.com>
  References: <4BBF314F.8060308@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox