Jump to content

Searching Indexes using key name


rondog

Recommended Posts

Can I write a query to search by using the keyname rather than entering all the fields?

 

For example, I have a colA,colB,colC indexed with a keyname searchableFields

 

Right now I write:

SELECT * FROM table WHERE MATCH(colA,colB,colC) AGAINST($someVar)

 

I want to be able to just do it like this:

SELECT * FROM table WHERE MATCH(searchableFields) AGAINST($someVar)

 

When I do that, I get a:

#1191 - Can't find FULLTEXT index matching the column list

 

error. Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/221078-searching-indexes-using-key-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.