Select Match on PostgreSQL.

From: Laurent Patureau <lpatureau(at)idfr(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Select Match on PostgreSQL.
Date: 2003-08-29 10:41:57
Message-ID: 5.0.0.25.0.20030829123618.02819278@pop.noos.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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&gt; SELECT id, body, MATCH (title,body) AGAINST<br>
-&gt; ('Security implications of running MySQL as root') AS score<br>
-&gt; FROM articles WHERE MATCH (title,body) AGAINST<br>
-&gt; ('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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Laurent Patureau<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><font size=1>S.A.R.L.</font><font size=2> ID.fr<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="mailto:lpatureau(at)idfr(dot)net" eudora="autourl">mailto:lpatureau(at)idfr(dot)net</a><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.idfr.net/" eudora="autourl">http://www.idfr.net</a><br>
<br>
&nbsp;&nbsp;&nbsp; Porter un nouveau regard à votre audience :<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.wysistat.com/" eudora="autourl">http://www.wysistat.com</a><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Tel : 03 81 48 03 13<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Fax : 03 81 48 04 83<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16,
Boulevard Winston Churchill<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
25 000 Besançon<br>
___________________________________</font></html>

Attachment Content-Type Size
unknown_filename text/html 2.3 KB

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Oleg Bartunov 2003-08-29 12:29:38 Re: Select Match on PostgreSQL.
Previous Message Richard Huxton 2003-08-29 08:52:33 Re: [SQL] Unique constraints for a list