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 > Does MATCH only work >4 Characters

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-04, 11:36
sd2001 sd2001 is offline
Registered User
 
Join Date: May 2004
Posts: 4
Does MATCH only work >4 Characters

When using MATCH in a SQL "Select....... we have found it ignores words of 3 letters or less, is this normal and can it be overcome?

Anthony
Reply With Quote
  #2 (permalink)  
Old 05-04-04, 11:38
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
fascinating

that's exactly what the manual says, too
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-04-04, 11:47
sd2001 sd2001 is offline
Registered User
 
Join Date: May 2004
Posts: 4
I take that as a no then.......

What section as we couldn't find it listed?

Anthony
SD2001
Reply With Quote
  #4 (permalink)  
Old 05-04-04, 12:08
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
Look at section 13.6.4. That's at least the section in the 5.0.0-alpha manual.

Quote:
Most full-text variables described in the following items must be set at server startup time. For these variables, a server restart is required to change them and you cannot modify them dynamically while the server is running. If you modify full-text variables that affect indexing (ft_min_word_len, ft_max_word_len, or ft_stopword_file), you must rebuild your FULLTEXT indexes after making the changes and restarting the server. To rebuild the indexes in this case, it’s sufficent to do a QUICK repair operation: /.../
And, here is what the manual says about the magic number 4:

Quote:
The minimum and maximum length of words to be indexed is defined by the ft_min_ word_len and ft_max_word_len system variables (available as of MySQL 4.0.0). See Section 5.2.3 [Server system variables], page 238. The default minimum value is four /.../
Reply With Quote
  #5 (permalink)  
Old 05-04-04, 12:38
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
"Any word that is too short is ignored. The default minimum length of words that will be found by full-text searches is four characters. "
-- http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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