Jump to content

How to get Search with relevance


pantinosm

Recommended Posts

Hi all, i am developing a search engine and by using this code
[code]SELECT *,MATCH(URL,Title,Keywords,Description)
AGAINST ('" . stripslashes (str_replace (""", "\"", ($colname_rsfindwebsitesearch))) . "')
FROM tblLinks
WHERE MATCH(URL,Title,Keywords,Description) AGAINST ('" . stripslashes (str_replace (""", "\"", ($colname_rsfindwebsitesearch))) . "' IN BOOLEAN MODE) ORDER BY URL"[/code]

i try to get the resulting pages in a table. The problem is that i want the first results to be the ones that contain all the keywords (in the above code the $colname_rsfindwebsitesearch), and then the individual keywords. Now if i try to do a search like thewriters-club.com instead of getting the url thewriters-club.com first, i get it somewhere in the middle.

Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/34135-how-to-get-search-with-relevance/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.