From: Mike Field <mike@fieldco.com>
To: pgsql-sql@postgreSQL.org
Subject: Search Engine with PHP
Date: Tue, 21 Sep 1999 09:23:47 -0400
Message-ID: <00c101bf0434$8c44e8c0$0300a8c0@mike> (raw)
Hi all-
I'm making an internal search engine with PHP.
So far, the user enters keywords and the database is searched with:
SELECT ... WHERE lower(fieldname) LIKE lower(keyword1) AND lower(fieldname) LIKE lower(keyword2)...
and this works great. Although, now I want the answers diplayed in order of best match (not sorted just by a fieldname). How do I do this? Do I need to totally restructure the search engine? Can I do it with a count( ) function? If so, how?
Any help would be great.
Thanks,
Mike
mike@fieldco.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mike@fieldco.com
Subject: Re: Search Engine with PHP
In-Reply-To: <00c101bf0434$8c44e8c0$0300a8c0@mike>
References: <00c101bf0434$8c44e8c0$0300a8c0@mike>
* 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