From: Oleg Bartunov <oleg@sai.msu.su>
To: Laurent Patureau <lpatureau@idfr.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Select Match on PostgreSQL.
Date: Fri, 29 Aug 2003 16:29:38 +0400 (MSD)
Message-ID: <Pine.GSO.4.56.0308291628330.1651@ra.sai.msu.su> (raw)
In-Reply-To: <5.0.0.25.0.20030829123618.02819278@pop.noos.fr>
References: <5.0.0.25.0.20030829123618.02819278@pop.noos.fr>
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@idfr.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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: oleg@sai.msu.su, lpatureau@idfr.net
Subject: Re: Select Match on PostgreSQL.
In-Reply-To: <Pine.GSO.4.56.0308291628330.1651@ra.sai.msu.su>
* 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