Go Back   Forum Care Forums > Development Reference Area > MySQL Discussion

Reply
 
LinkBack Thread Tools Display Modes
Very strange problem
Old
  (#1)
Bruce
Guest
 
Posts: n/a
Default Very strange problem - 06-04-2007, 07:46 AM

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?

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Very strange problem
Old
  (#2)
Paul Lautman
Guest
 
Posts: n/a
Default Re: Very strange problem - 06-04-2007, 07:46 AM

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;"


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Very strange problem
Old
  (#3)
Bruce
Guest
 
Posts: n/a
Default Re: Very strange problem - 06-04-2007, 07:46 AM

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;"


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Very strange problem
Old
  (#4)
Paul Lautman
Guest
 
Posts: n/a
Default Re: Very strange problem - 06-04-2007, 07:46 AM

Bruce wrote:
> 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.


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Very strange problem
Old
  (#5)
Bruce
Guest
 
Posts: n/a
Default Re: Very strange problem - 06-04-2007, 07:46 AM

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

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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





Contact Us - Forum Care Forums - Archive - Top