che versione di mysql hai? le ricerche boolean funzionano dalla 4.1.1 in su.
Oltretutto devi stare attento al numero di occorrenze della parola ricercata all'interno dei tuoi articoli: cito direttamente da ciò che ha scritto jim Ferrara:
According to the MySQL manual, Full-text is a “natural language search”; it indexes words that appear to represent the row, using the columns you specified. As an example, if all your rows contain “MySQL” then “MySQL” won’t match much. It’s not terribly unique, and it would return too many results. However, if “MySQL” were present in only 5% of the rows, it would return those rows because it doesn’t appear too often to be known as a keyword that’s very common. (If you have “MySQL” in none of your rows, it’ll return nothing;
Altrimenti prova una soluzione simile:
codice:
SELECT *, MATCH('titolo','testo') AGAINST ('kw1 kw2') as Relevance
FROM articoli
WHERE MATCH('titolo','testo') AGAINST('+kw1 +kw2' IN BOOLEAN MODE)
HAVING Relevance > 0.2
ORDER BY Relevance DESC
In questo caso facciamo un controllo manuale sulla rilevanza in modo da recuperare qualsiasi risultato che ne abbia una significativa ...
fammi sapere