I want to display relevant products on a page. I use the following query:
SELECT item.*, MATCH (item.title) AGAINST ('M' IN BOOLEAN MODE) AS relevancy
FROM __items AS item
ORDER BY relevancy DESC
The table __items has a few items (id, title) and one with title just M.
I tried using an asterisk ('M*')
, but it didn't work. Thanks for your help!