dawg00 Posted May 10, 2010 Share Posted May 10, 2010 Hello, i am in search of an algorithm that can search for a KEYWORD from fulltext Mysql table , i have used the boolean functions provided in mysql using php, wanted another algorithm that can do searching for keyword.. PLZ HELP ME.. Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/ Share on other sites More sharing options...
Muddy_Funster Posted May 10, 2010 Share Posted May 10, 2010 Can you elaborate on what a "Full Text MySQL Table" is please? Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1055827 Share on other sites More sharing options...
dawg00 Posted May 10, 2010 Author Share Posted May 10, 2010 File name fulltext its like i want to place contents of files into columns fulltext. when i give a keyword as input the rows containing that keyword should be displayed. Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1055860 Share on other sites More sharing options...
Muddy_Funster Posted May 10, 2010 Share Posted May 10, 2010 your question seems to be one of SQL rather than one of php, the SQL you are looking for should be somthing like: $query = "SELECT * from `tablename` MATCH (`columnName1`, `columnName2`, `columnName3`...) AGAINST (`keyword` WITH QUERY EXPANSION)"; $result = mysql_query($query) or die (mysql_error); while ($row = mysql_fetch_array($result)){ print_r ($row); } does that help? Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1055877 Share on other sites More sharing options...
dawg00 Posted May 11, 2010 Author Share Posted May 11, 2010 i have used the BOOLEAN SEARCH provided by MYSQL to search fulltext(similar to the query you have showed but uses boolean search expression). Just wanted to know if there is any other way of doing this fulltext search. Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1056230 Share on other sites More sharing options...
Muddy_Funster Posted May 11, 2010 Share Posted May 11, 2010 That's the only way I know of, but I haven't actualy used fulltext. Perhaps somone else has a better idea. Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1056250 Share on other sites More sharing options...
Adam Posted May 11, 2010 Share Posted May 11, 2010 You haven't actually said why you don't want to use boolean search. Why do you need another way of doing it when the MySQL manual is clearly stating that's the way to do it? Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1056268 Share on other sites More sharing options...
dawg00 Posted May 11, 2010 Author Share Posted May 11, 2010 I was just curious to know if there is any other way to do the fulltext search. Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1056294 Share on other sites More sharing options...
Mchl Posted May 11, 2010 Share Posted May 11, 2010 There is. You can use separate engine like http://www.sphinxsearch.com/ Quote Link to comment https://forums.phpfreaks.com/topic/201258-need-an-algorithm-that-can-scan-fulltext-from-mysql-database/#findComment-1056295 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.