Re: fts, compond words? - Mailing list pgsql-general

From Oleg Bartunov
Subject Re: fts, compond words?
Date
Msg-id Pine.GSO.4.63.0512051507040.13553@ra.sai.msu.su
Whole thread Raw
In response to fts, compond words?  (Marcus Engene <mengpg@engene.se>)
Responses Re: fts, compond words?
List 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@postgresql.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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

pgsql-general by date:

Previous
From: Marcus Engene
Date:
Subject: fts, compond words?
Next
From: Nicola.Scioscia@ascot.tn.it
Date:
Subject: plperlu function