multiple keyword search - Mailing list pgsql-sql

From Mike Field
Subject multiple keyword search
Date
Msg-id 001f01beea87$600b7240$0300a8c0@mike
Whole thread Raw
List pgsql-sql
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
 

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] searching time arrays
Next
From: "Hamid Khoshnevis"
Date:
Subject: RE: [SQL] Using intersect in subquery