Search Engine with PHP

Поиск
Список
Период
Сортировка
От Mike Field
Тема Search Engine with PHP
Дата
Msg-id 00c101bf0434$8c44e8c0$0300a8c0@mike
обсуждение исходный текст
Список pgsql-sql
 
    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
 
 

В списке pgsql-sql по дате отправления:

Предыдущее
От: "Stephen Horton"
Дата:
Сообщение: please remove me from the list
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Subselect performance