![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Something strange is happening. I have a search index on a particular column. If I search with MATCH( mytable ) AGAINST( '+fan' IN BOOLEAN MODE) I do not find any records. However, the records are there: aisql "select ebay_title from inventory" | grep -i ' fan ' Used Fasco 1/3 HP Industrial Floor Fan Motor New, GE 1.5-2HP HVAC fan blower motor Model #5K49MN4250FZ ... ... ... NEW,HAYDEN ELECTRIC FAN MOTOR 021386 FORKLIFT HEATER FAN If I search the same table the same way, but for another word "alternator", mysql finds plenty of records. My question is, why doesn't it find 'fan', but does find 'alternator', when both are present? Is "fan" somehow a stop word? |
#3
| |||
| |||
|
|
On 8/8/2012 3:35 PM, Ignoramus495 wrote: Something strange is happening. I have a search index on a particular column. If I search with MATCH( mytable ) AGAINST( '+fan' IN BOOLEAN MODE) I do not find any records. However, the records are there: aisql "select ebay_title from inventory" | grep -i ' fan ' Used Fasco 1/3 HP Industrial Floor Fan Motor New, GE 1.5-2HP HVAC fan blower motor Model #5K49MN4250FZ ... ... ... NEW,HAYDEN ELECTRIC FAN MOTOR 021386 FORKLIFT HEATER FAN If I search the same table the same way, but for another word "alternator", mysql finds plenty of records. My question is, why doesn't it find 'fan', but does find 'alternator', when both are present? Is "fan" somehow a stop word? The default minimum word length for fulltext searches is 4 characters. 'fan' is only 3 characters. You can change this in your mysql config file. See http://dev.mysql.com/doc/refman/5.6/...t-boolean.html for more info. |
#4
| |||
| |||
|
|
On 2012-08-08, Jerry Stuckle <jstucklex (AT) attglobal (DOT) net> wrote: On 8/8/2012 3:35 PM, Ignoramus495 wrote: Something strange is happening. I have a search index on a particular column. If I search with MATCH( mytable ) AGAINST( '+fan' IN BOOLEAN MODE) I do not find any records. However, the records are there: aisql "select ebay_title from inventory" | grep -i ' fan ' Used Fasco 1/3 HP Industrial Floor Fan Motor New, GE 1.5-2HP HVAC fan blower motor Model #5K49MN4250FZ ... ... ... NEW,HAYDEN ELECTRIC FAN MOTOR 021386 FORKLIFT HEATER FAN If I search the same table the same way, but for another word "alternator", mysql finds plenty of records. My question is, why doesn't it find 'fan', but does find 'alternator', when both are present? Is "fan" somehow a stop word? The default minimum word length for fulltext searches is 4 characters. 'fan' is only 3 characters. You can change this in your mysql config file. See http://dev.mysql.com/doc/refman/5.6/...t-boolean.html for more info. Thanks. I just made that change, sometimes I even want to search for one or especially two letter words (such as AB, an abbreviation for Allen-Bradley). In my own opinion, discriminating words by number of characters was, so to speak, not the brightest idea. i |
#5
| |||
| |||
|
|
The default minimum word length for fulltext searches is 4 characters. 'fan' is only 3 characters. You can change this in your mysql config file. See http://dev.mysql.com/doc/refman/5.6/...t-boolean.html for more info. Thanks. I just made that change, sometimes I even want to search for one or especially two letter words (such as AB, an abbreviation for Allen-Bradley). In my own opinion, discriminating words by number of characters was, so to speak, not the brightest idea. |
![]() |
| Thread Tools | |
| Display Modes | |
| |