From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | jtx <jtx(at)hatesville(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: relevance |
Date: | 2003-07-17 02:37:49 |
Message-ID: | Pine.GSO.4.56.0307170637000.12656@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Have you seen contrib/tsearch ?
http://www.sai.msu.su/~megera/postgres/gist/tsearch/
Oleg
On Wed, 16 Jul 2003, jtx wrote:
> I'm trying to build a really basic search engine for a site I'm using -
> say I'm going to simplify this as much as I can.
>
> Say I have a table with 2 columns: id, message
>
> Person wants to search for the term 'sql'. So, I'd do a simple search
> like:
>
> select id from tablename where message like '%sql%';
>
> If there any way to determine exactly how many times 'sql' is matched in
> that search in each particular row, and then sort by the most matches,
> or am I going to have to write a script to do the sorting for me?
>
> Thanks!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)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(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Terence Kearns | 2003-07-17 02:51:24 | Re: relevance |
Previous Message | Benjamin Smith | 2003-07-17 01:34:08 | Join table with itself for heirarchial system? |