thryb Posted October 18, 2007 Share Posted October 18, 2007 Hey guys, Im having a litle problem with a query, I was reading about searching in multiple field with non exact match and the query should look like this in FULLTEXT $sql = "SELECT * FROM Comment WHERE MATCH(CommSubject, CommText, PartCountry, PartCity) AGAINST ('".$searchstring."') ORDER BY CommDT DESC"; The thing is I dont want the user to use boolean expression is the look for lets say Sold insteed of Soldier but if I try it with only sold, I get no query result. Does anyone have an idea what is wrong with it ? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/73786-solved-match-agains-non-exact-match-not-fulltext-error-p/ Share on other sites More sharing options...
thryb Posted October 18, 2007 Author Share Posted October 18, 2007 Sorry I found it, just had to use boolean but add my own operator ... duh. $sql = "SELECT * FROM Comment WHERE MATCH(CommSubject, CommText, PartCountry, PartCity) AGAINST ('*".$searchstring."*' IN BOOLEAN MODE) ORDER BY CommDT DESC"; Link to comment https://forums.phpfreaks.com/topic/73786-solved-match-agains-non-exact-match-not-fulltext-error-p/#findComment-372268 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.