Re: Select Match on PostgreSQL.

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Laurent Patureau <lpatureau(at)idfr(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Select Match on PostgreSQL.
Date: 2003-08-29 12:29:38
Message-ID: Pine.GSO.4.56.0308291628330.1651@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Laurent,

take a look at contrib/tsearch2
http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
It does exactly what you want and more.

Oleg
On Fri, 29 Aug 2003, Laurent Patureau wrote:

>
> Hi,
>
> I'm looking for a SELECT request on PostgreSQL for a search engine.
> I'd like the request return me the pertinence (relevance) of each result.
>
> I've found the MySQL syntax on the web :
> mysql> SELECT id, body, MATCH (title,body) AGAINST
> -> ('Security implications of running MySQL as root') AS score
> -> FROM articles WHERE MATCH (title,body) AGAINST
> -> ('Security implications of running MySQL as root');
>
> But how can I do it on PostgreSQL where Match syntax is not accepted ?
>
> Thanks to help me.
>
> Regards.
>
> Laurent Patureau.
> Co-gИrant / IngИnieur d'Affaire.
> ____________________________________
> Laurent Patureau
> S.A.R.L. ID.fr
>
> mailto:lpatureau(at)idfr(dot)net
>
> http://www.idfr.net
>
> Porter un nouveau regard Ю votre audience :
> http://www.wysistat.com
>
> Tel : 03 81 48 03 13
> Fax : 03 81 48 04 83
>
> 16, Boulevard Winston Churchill
> 25 000 BesanГon
> ___________________________________
>

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

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2003-08-30 02:50:19 Re: BEFORE UPDATE Triggers
Previous Message Laurent Patureau 2003-08-29 10:41:57 Select Match on PostgreSQL.