Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mysql Fulltext Boolean Problem

Status
Not open for further replies.

altendew

Programmer
Mar 29, 2005
154
US
Hi I currently have a problem..

I currently have my boolean limit set to 1 character in a word.

So if I search for e-Mail.. it will also bring up e-Gold..

Because of the "-" it does this, is there anyway to make it ignore that hyphen inside, and just return e-Mail??
 
Code:
	$q = $db->Query('SELECT *, ((2*(MATCH(name) AGAINST (\''.$searchStr.'\' IN BOOLEAN MODE))) + (MATCH(answer, question) AGAINST (\''.$searchStr.'\' IN BOOLEAN MODE))) AS score FROM helpIcons WHERE MATCH(name, answer, question) AGAINST (\''.$searchStr.'\' IN BOOLEAN MODE) ORDER BY score DESC');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top