I have a table places(name vachar(50), address text, description text) engine = MYISAM and few records.
I have been trying to do some example in here!, and searching for the ‘full-text problem’ but i have not clear about fulltext search.
First, i add a fulltext index by:
ALTER TABLE places ADD FULLTEXT(name, address, description);
and try mySQL:
SELECT * FROM places WHERE MATCH(name,address,description) AGAINST('my search key');
i have try some ‘my search key’ that content is in many field, but there are some case i got:
-
now row selected .
-
if i trying
add option "IN BOOLEAN MODE" in AGAINST(), result obtained with score =1 , its is meaningless when i sort it . -
it just show the result when the “search key” has content in field (name).
i tried a lot way but i don’t remember all cases,
Any answer could help!
Thanks in advance!
Ensure that your key word is not a stop word. To disable or modify the stop word list, you’ll need access to set system variables and restart the server.
Also, ensure that your key word meets the minimum full text word length. The default minimum length is 4.
Finally, ensure that the word appears in less than 50% of the records. MySQL won’t return results where the word appears in 50% or more of the records.