Jump to content

FULLTEXT on multiple columns not working


beedie

Recommended Posts

i have a query that works on two fulltext columns if only requesting one.

If I query both in the same query I get

Can't find FULLTEXT index matching the column list

 

$query ="SELECT * FROM reviews WHERE MATCH(company,experience) AGAINST ('yeah')";

but this is fine

$query ="SELECT * FROM reviews WHERE MATCH(company) AGAINST ('yeah')";

as is this:

$query ="SELECT * FROM reviews WHERE MATCH(experience) AGAINST ('yeah')";

 

Both columns have fulltext

 

FULLTEXT KEY `company` (`company`),
  FULLTEXT KEY `experience` (`experience`)

What is wrong?

 

Link to comment
Share on other sites

Fenway I'm not sure what is confusing you.

I have two columns in the same table.

The search only works when I do the query on each one on it's own (except when I add the IN BOOLEAN MODE)

I thought I could do it without boolean mode for both columns in the same query. ??

Link to comment
Share on other sites

The search only works when I do the query on each one on it's own (except when I add the IN BOOLEAN MODE)

It shouldn't work -- you have 2 separate indexes, so it requires searches on each one independently.  You're telling me you don't have an index that spans both columns?  Maybe it combines them now? Which version?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.