Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

sql to create multi column full text index (mySQL)

This query returns an error because a multi column full text index is needed:

select * from `organizations` where MATCH (`name`,`keywords`,`description`,`custom_keywords`,`naics_keywords`, `naics_desc`, `p_city`, `promo_text`) AGAINST ('foo bar' WITH QUERY EXPANSION)


Could you please give me the sql query I need to create a multi column full text index on the columns needed for the above query?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of mostart
mostart

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mostart
mostart

also think about FULLTEXT INDEX is only working with myIsam storage engine.
check this for details:
http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html