pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedSelect Match on PostgreSQL.
2+ messages / 2 participants
[nested] [flat]
* Select Match on PostgreSQL.
@ 2003-08-29 10:41 Laurent Patureau <lpatureau@idfr.net>
0 siblings, 1 reply; 2+ messages in thread
From: Laurent Patureau @ 2003-08-29 10:41 UTC (permalink / raw)
To: pgsql-sql
<html>
<br>
Hi,<br>
<br>
I'm looking for a SELECT request on PostgreSQL for a search engine.<br>
I'd like the request return me the pertinence (relevance) of each
result.<br>
<br>
I've found the MySQL syntax on the web :<br>
mysql> SELECT id, body, MATCH (title,body) AGAINST<br>
-> ('Security implications of running MySQL as root') AS score<br>
-> FROM articles WHERE MATCH (title,body) AGAINST<br>
-> ('Security implications of running MySQL as root');<br>
<br>
But how can I do it on PostgreSQL where Match syntax is not accepted
?<br>
<br>
Thanks to help me.<br>
<br>
Regards.<br>
<x-sigsep><p></x-sigsep>
Laurent Patureau.<br>
Co-gérant / Ingénieur d'Affaire.<br>
____________________________________<br>
<font size=2>
Laurent Patureau<br>
</font><font size=1>S.A.R.L.</font><font size=2> ID.fr<br>
<br>
<a href="mailto:lpatureau@idfr.net" eudora="autourl">mailto:lpatureau@idfr.net</a><br>
<br>
<a href="http://www.idfr.net/"; eudora="autourl">http://www.idfr.net</a><br;
<br>
Porter un nouveau regard à votre audience :<br>
<a href="http://www.wysistat.com/"; eudora="autourl">http://www.wysistat.com</a><br;
<br>
Tel : 03 81 48 03 13<br>
Fax : 03 81 48 04 83<br>
<br>
16,
Boulevard Winston Churchill<br>
25 000 Besançon<br>
___________________________________</font></html>
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Select Match on PostgreSQL.
@ 2003-08-29 12:29 Oleg Bartunov <oleg@sai.msu.su>
parent: Laurent Patureau <lpatureau@idfr.net>
0 siblings, 0 replies; 2+ messages in thread
From: Oleg Bartunov @ 2003-08-29 12:29 UTC (permalink / raw)
To: Laurent Patureau <lpatureau@idfr.net>; +Cc: 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@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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-08-29 12:29 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29 10:41 Select Match on PostgreSQL. Laurent Patureau <lpatureau@idfr.net>
2003-08-29 12:29 ` Oleg Bartunov <oleg@sai.msu.su>
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