How can I make a “frequent searches” engine?

m@m

New Member
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 \[code\]importance\[/code\]) 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 \[code\]big house\[/code\], you may want to store \[code\]big house\[/code\] as a frequent search, not \[code\]big\[/code\] and \[code\]house\[/code\].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?
 
Back
Top