Gossamer Forum
Home : General : Databases and SQL :

MySQL FullText

Quote Reply
MySQL FullText
Hum, I'm using mysql fulltext searches for a script of mine, theoretically it's pretty simple but as normal I encounter annoying perculiarities.

I have one record in my table containing the words "test" and a few other words of no importance.....when I do a search for "test"....I get a result...woohoo.....

_But_ if I do a search for "blurp" I still get one result...huh? Pirate

SELECT * FROM Table WHERE MATCH (Col1, Col2) AGAINST ('blurp')

Have I lost my mind yet again?

(I'm thinking of resorting to LIKE)

Last edited by:

Paul: Jun 21, 2002, 6:10 AM
Quote Reply
Re: [Paul] MySQL FullText In reply to
Hi Paul,

Yup, I didn't like FULLTEXT in MySQL 3.x, or even 4.01. I would get really strange results. What does SELECT Co1,Col2 FROM Table give you?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] MySQL FullText In reply to
The query you suggested returns the row.
Quote Reply
Re: [Paul] MySQL FullText In reply to
I was more interested in what was in the row to see why it would match..

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] MySQL FullText In reply to
It returns:

Col1:
Testing the KB

Col2:
This is the main faq body..