pantinosm Posted January 14, 2007 Share Posted January 14, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.