Natural Language Mode
The default mode. MySQL ranks results by relevance, ignores stop words (the, is, a...), and words appearing in more than 50% of rows.
The default mode. MySQL ranks results by relevance, ignores stop words (the, is, a...), and words appearing in more than 50% of rows.
SELECT title,
MATCH(title, body)
AGAINST('database optimization' IN NATURAL LANGUAGE MODE) AS relevance
FROM articles
WHERE MATCH(title, body)
AGAINST('database optimization' IN NATURAL LANGUAGE MODE)
ORDER BY relevance DESC
LIMIT 10;
Natural language mode automatically ignores common words — no manual stop word handling needed.