I am trying to search an entire table and return the most occurring phrases (up to three words) within a long string. I believe I could use fulltext search, but I am not matching against anything...
table
I like Iron Man 3 so much
Iron Man 3 sucked alot
Iron Man really saved the day
I like cats
cats are cool
result
Iron Man
Iron Man 3
cats
query
SELECT *
FROM table
WHERE substring(text, up to 3 words) OCCURS MOST
ORDER BY OCCURRENCE DESC