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. Quote Link to comment 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"; Quote Link to comment 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.