Re: How to create dictionaries for tsearch

From: Paulo Jan <admin(at)digital(dot)ddnet(dot)es>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to create dictionaries for tsearch
Date: 2002-10-03 16:47:50
Message-ID: 3D9C74B6.AC755197@digital.ddnet.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oleg Bartunov wrote:
>
> On Thu, 3 Oct 2002, Paulo Jan wrote:
>
> > Hi all:
> >
> > I have read the documentation for the tsearch module, specifically the
> > part about creating custom dictionaries for different languages using
> > the "makedict.pl" script. What I don't understand, though, is where do I
> > get the lists of stopwords and endings for each language. Do I have to
>
> which languages ?
>

Spanish.

> > write them myself? Is there some reference website where I can get that
> > kind of information for a given language?
> >
> Google is your friend.
>

Oh, okay. And not only that, but now that I've paid more attention to
the OpenFTS site, I have seen the link to the snowball stemmers too,
including the spanish one. However...

> I'd recommend to use OpenFTS (openfts.sourceforge.net) for full text searching
> which has support for ispell dictionaries and snowball stemmers,
> which have support for spanish.
>

Can I use OpenFTS to index and search databases que are not "pure
text", but only have some text fields? From what I see, I have the
impression that OpenFTS is designed to store and search text documents
(newspaper articles, papers, etc.) using a Postgres backend, while in my
case, I'm storing information (photographs and data associated to them)
that has some text fields that need to be indexed and other "normal"
fields (numeric, etc.) that don't need to be, and I need to search by
both of them; in other words, I need to do something like "SELECT * FROM
photos WHERE captionidx @@ 'angelina' AND resolution='high' AND
photodate > '01-01-2002'". Can I use OpenFTS for this kind of mixed
searches? From what I have read, I have the impression that it's a bit
cumbersome to do so.
Alternatively, can you use the snowball stemmer only with tsearch,
without installing OpenFTS?

Paulo Jan.
DDnet.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-10-03 16:48:22 Re: Import textfile as table
Previous Message Manfred Koizar 2002-10-03 16:44:09 Re: Large databases, performance