MySQL Full Text Search Boolean Mode Partial Match

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-06-15T17:49:01Z Indexed on 2010/06/15 17:52 UTC
Read the original article Hit count: 194

Filed under:
|
|
|

I've found boolean mode of MySQL full text search useful, however there are a couple of things I can't seem to figure out how to achieve.

For instance imagine I have a full text column containing the words "Steve's Javascript Tutorial - Part One".

I would like to match this for each of the following searches: "tutorials", "javascript tutorials", "java", "java script", "script"

Imagine that each of those searches is simply assigned to a variable in whatever language may be being used (I always use PHP).

How could I modify this to make sure that Steve's article is returned on each of those searches?

MATCH (article_title) AGAINST ('"+$variable+"*' IN BOOLEAN MODE)

© Stack Overflow or respective owner

Related posts about mysql

Related posts about text