i use from "FullText" in "MySql" Because there are non-related words (unknown) in the text
table name: find
records:
id | name ---------------------------- 1 help me 2 helply goods 3 this help good every 4 this easy helps goods 5 this help good
i try this code:
SELECT * FROM `Find`
WHERE MATCH(`name`) AGAINST('internet* help* this* good* for* alll*' IN BOOLEAN MODE)
"IN BOOLEAN MODE" show all records that have one of these words.
I want search method like the "IN NATURAL LANGUAGE MODE" to show the best result. But in this way, the correct word should be written that is not good
So I have to use the IN BOOLEAN MODE method
output of this query is :
id | name ---------------------------- 2 helply goods 3 this help good every 4 this easy helps goods 5 this help good
but i want run a query that sorted by "best results" example find : internet* help* this* good* for* alll*
output:
id | name ---------------------------- 5 | this help good 3 | this help good every 4 | this easy helps goods 2 | helply goods 1 | help me