My first idea was start storing every word in the database ignoring words with 2 or fewer characters and every time a word is repeated just add one to a counter row (say importance
) to appear first on the list of frequent searches. Sounds good until you think that normally you search for various words not just one word, eg.: for big house
, you may want to store big house
as a frequent search, not big
and house
.
I'm a little bit confused about how to do this and do it right. Has anyone done something similar? What do you think about the right way to do this?