I'd like to have the results of my full text search in MySQL sorted by how completely the pattern covers the match.
For example searching for apple in a nutrition database should sort "apple, raw" higher than "apple fritter" since 5/9 > 5/12.
I can do this rather trivially outside the database, but i'm looking for a query that'll do it in one shot.
Any ideas?
Thank you.