Can't find FULLTEXT index matching the column list

Posted on 2004-11-17
Last Modified: 2008-03-17
I'm getting the error:

"Can't find FULLTEXT index matching the column list"

I have found that the column list in my query must EXACTLY match the column list in my FULL TEXT index.

So if I want to query like this:

SELECT FileID,'File'
FROM FileMetaData
WHERE MATCH (FileText,OrigAuthor,LastModAuthor,Description,Custom5Value)
AGAINST ('one for the money')

. . .I must create my fulltext index like this:

CREATE TABLE FileMetadata (
  FileID int(11) NULL,
  FolderID int(11) NULL,
  ProjectID int(11) NULL,
  FileText text NULL,
  FileTextPage int(11) NULL,
  OrigAuthor varchar(50) NULL, #mandatory metadata field
  LastModAuthor varchar(50) NULL, #mandatory metadata field
  Description varchar(100) NULL, #mandatory metadata field
  Custom1Value varchar(50) NULL,
  Custom2Value varchar(50) NULL,
  Custom3Value varchar(50) NULL,
  Custom4Value varchar(50) NULL,
  Custom5Value varchar(50) NULL,
  FULLTEXT KEY idxFileMetaData (FileText,OrigAuthor,LastModAuthor,Description,Custom5Value)

. . .but this is not practical for me, because any combination of those fields can be searchable by a user. My UI allows users to select which fields to search against. If their selection happens to not correspond with the exact fields as specified in the fulltext key, I get the error mentioned above. Even if I include EVERY text-like column in the table, in the fulltext index, if the user wants to search only against a subset of those columns, the error will result.

It's hard for me to believe that MySQL 4.1 could possibly be this inflexible. . .? I must be doing something wrong. How can I include all text-like columns in my fulltext index, but still allow users to search against any desired subset of those columns?

Or is there some trick for an alternative? I guess if i had to query against all columns every time, is there a way for me to exclude records that matched against columns that the user did not want to include in the search?
Question by:SweatCoder
    LVL 20

    Accepted Solution

    I think you can use a fulltext  for each field and just union them.
    I don't think you have any other alternative.  
    There's no such thing as partial indexing (e.g. using less than all of the fields that compose an index)
    LVL 11

    Author Comment

    yes, i came to that conclusion as well. i had to make a separate index for each field, and then in my queries, specify a single field for each query and do a bunch of unions.

    this is a real flaw in mysql. it's very rigid and allows no flexibility in the way the sql is written, and thus how the app is developed in this sense.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    I have been using r1soft Continuous Data Protection ( for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now