From: Mike Field <mike@fieldco.com>
To: pgsql-sql@postgreSQL.org
Subject: multiple keyword search
Date: Thu, 19 Aug 1999 17:11:15 -0400
Message-ID: <001f01beea87$600b7240$0300a8c0@mike> (raw)
Hi all-
I have some text documents inside a table, just inserted normally as text (each tuple is less than 8k). How can I search the content for multiple keywords, for example, search content field for word1, word2, word3 ?
I understand the
WHERE content LIKE '%word1%'
idea, but how can I search for more than ONE keyword at a time?
Most importantly, is there a way to order the results by the quality of the match (ie, best match at the top, worst at the bottom)?
Let me know.
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: multiple keyword search
In-Reply-To: <001f01beea87$600b7240$0300a8c0@mike>
References: <001f01beea87$600b7240$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