RE: [SQL] Search Engine with PHP

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [SQL] Search Engine with PHP
Дата
Msg-id D05EF808F2DFD211AE4A00105AA1B5D25982D2@cpsmail
обсуждение исходный текст
Список pgsql-sql
The best approach that I could think of to solve your problem, would be to
use full-text index (look in the contrib directory of the distribution).
Should be fairly easy to devise a query that would give you match counts
using full-text indexing.

Hope this helps,DEJ

> -----Original Message-----
>     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 <mailto:mike@fieldco.com>
>  


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

Предыдущее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [SQL] Large char field(s)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] Subselect performance