5 messages in com.mysql.lists.mysqlProblem With FulltText Index and VarChar
FromSent OnAttachments
Michael Stearne27 Dec 2005 14:04 
Gleb Paharenko28 Dec 2005 04:51 
Michael Stearne29 Dec 2005 18:24 
Gleb Paharenko30 Dec 2005 08:43 
Michael Stearne30 Dec 2005 19:01 
Subject:Problem With FulltText Index and VarChar
From:Michael Stearne (mste@entermix.com)
Date:12/27/2005 02:04:24 PM
List:com.mysql.lists.mysql

I am trying to do a fulltext search with a multi-field index using MySQL 4.1.15.

When I create a full text index of my Comments field which is of type TEXT. I can do a fulltext search fine.

But when I add another field (like a varchar or even Text) to that index or change the name of the index I get and error like:

SELECT * FROM properties WHERE MATCH (CommentsIDX) AGAINST ( "item1 OR item2 AND (item3 AND item4 NOT (item5 OR item6))" WITH QUERY EXPANSION )

MySQL said: Documentation #1054 - Unknown column 'CommentsIDX' in 'where clause'

My table structure contains: FULLTEXT KEY `CommentsIDX` (`Comments`)

Any ideas?

Thanks