Jump to content

Full Text Search Against Help


barkster

Recommended Posts

I have a query like this where I'm trying to query all columns for any matching value but when I try and do my job_number field it will not find any results.

 

SELECT * FROM tasks WHERE MATCH (job_number,client_name)

AGAINST ('+097' IN BOOLEAN MODE)

 

taskid      job_number      client_name

1              21-097            Birch

2              22-884            Smith

 

When I run the query it will not find any tasks matching 097 but will find birch... any ideas.  All columns are set to text type

Link to comment
https://forums.phpfreaks.com/topic/261272-full-text-search-against-help/
Share on other sites

Try editing your ft_min_word_len=4 to a lower amount in /etc/my.cnf or /etc/mysql/my.cnf

 

After you change this you must repair the indexes on that table

 

REPAIR TABLE table_name QUICK;//edit to your table name

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.