dbTalk Databases Forums  

Very strange problem

comp.databases.mysql comp.databases.mysql


Discuss Very strange problem in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce
 
Posts: n/a

Default Very strange problem - 01-09-2007 , 02:45 PM






I have a column in a table that is configured for full text searching.
I can search the DB with this:


SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add"' IN BOOLEAN MODE);


It will not return results when searching for the work "add" or ("Add"
or any other variant). It can find phases that include the word "add"
like this:

SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add to base"' IN BOOLEAN MODE);

That works fine. It can also find records with any other single word
that I've tested. I'm using the command line interface in Linux and
using the Query Browser Client in windows with the same results. Any
idea what's going on here? What am I missing?


Reply With Quote
  #2  
Old   
Paul Lautman
 
Posts: n/a

Default Re: Very strange problem - 01-09-2007 , 03:01 PM






Bruce wrote:
Quote:
I have a column in a table that is configured for full text searching.
I can search the DB with this:


SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add"' IN BOOLEAN MODE);


It will not return results when searching for the work "add" or ("Add"
or any other variant). It can find phases that include the word "add"
like this:

SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add to base"' IN BOOLEAN MODE);

That works fine. It can also find records with any other single word
that I've tested. I'm using the command line interface in Linux and
using the Query Browser Client in windows with the same results. Any
idea what's going on here? What am I missing?
You're missing that bit where you read the manual and it says:
"The default minimum value is four characters;"




Reply With Quote
  #3  
Old   
Bruce
 
Posts: n/a

Default Re: Very strange problem - 01-10-2007 , 07:34 AM



Yep, I missed that. Thanks.



Paul Lautman wrote:
Quote:
Bruce wrote:
I have a column in a table that is configured for full text searching.
I can search the DB with this:


SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add"' IN BOOLEAN MODE);


It will not return results when searching for the work "add" or ("Add"
or any other variant). It can find phases that include the word "add"
like this:

SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add to base"' IN BOOLEAN MODE);

That works fine. It can also find records with any other single word
that I've tested. I'm using the command line interface in Linux and
using the Query Browser Client in windows with the same results. Any
idea what's going on here? What am I missing?

You're missing that bit where you read the manual and it says:
"The default minimum value is four characters;"


Reply With Quote
  #4  
Old   
Paul Lautman
 
Posts: n/a

Default Re: Very strange problem - 01-10-2007 , 07:35 AM



Bruce wrote:
Quote:
Yep, I missed that. Thanks.



Paul Lautman wrote:
Bruce wrote:
I have a column in a table that is configured for full text
searching. I can search the DB with this:


SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add"' IN BOOLEAN MODE);


It will not return results when searching for the work "add" or
("Add" or any other variant). It can find phases that include the
word "add" like this:

SELECT * FROM mydb.MyTable where MATCH (strFullTextColumn) AGAINST
('"add to base"' IN BOOLEAN MODE);

That works fine. It can also find records with any other single word
that I've tested. I'm using the command line interface in Linux and
using the Query Browser Client in windows with the same results.
Any idea what's going on here? What am I missing?

You're missing that bit where you read the manual and it says:
"The default minimum value is four characters;"
Be sure and read the next bit that says that you can change this value.




Reply With Quote
  #5  
Old   
Bruce
 
Posts: n/a

Default Re: Very strange problem - 01-10-2007 , 08:13 AM



I changed the variable and it worked. Thanks for you help!


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.