If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Full text search returns an empty string, can't understand

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-08, 07:40
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
Full text search returns an empty string, can't understand

Hello,
I have an sql search with data in a table which should be returned. However the I am getting an empty set back.
I enclose below the SQL I am using and the table:
Code:
SELECT poisonId, poison, latin_name, short_desc, status FROM tblpoisons WHERE MATCH (poison,latin_name,short_desc,full_desc) AGAINST ('%poison%')
Code:
CREATE TABLE `tblpoisons` (
  `poisonId` int(11) NOT NULL auto_increment,
  `catId` int(11) default NULL,
  `poison` varchar(150) default NULL,
  `latin_name` varchar(150) default NULL,
  `short_desc` varchar(250) default NULL,
  `Full_desc` mediumtext,
  `status` tinyint(1) default NULL,
  PRIMARY KEY  (`poisonId`),
  FULLTEXT KEY `searchindex` (`poison`,`latin_name`,`short_desc`,`Full_desc`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
Many thanks in advance
Olivier
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On