Re: fts, compond words?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Marcus Engene <mengpg(at)engene(dot)se>
Cc: POSTGRESQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: fts, compond words?
Date: 2005-12-05 12:08:16
Message-ID: Pine.GSO.4.63.0512051507040.13553@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 5 Dec 2005, Marcus Engene wrote:

> Hi,
>
> I use the tsearch full text search with pg 8.0.3. It works great, but I
> wonder if it's possible to search for compound words?
> Ie if I search for "New York" i want to get a match on
> New York has traffic problems.
> but not on
> New axe murderer incident in brittish York.
>
> Is this possible?
>
> I don't use any wrapper, just
> select
> ...
> from
> ...
> where
> idxfti @@ to_tsquery('default', 'searchstring')

ranking function is what you need. Read documentation.

>
> Thanks,
> Marcus
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

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 John D. Burger 2005-12-05 13:24:16 Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508 digits
Previous Message Marcus Engene 2005-12-05 11:40:10 fts, compond words?