Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching db content and show results based on relevancy

Status
Not open for further replies.

FateFirst

Programmer
Apr 15, 2002
212
GB
Hi.

I currently have a basic CMS that I wrote for a friend.

I am looking to introduce a 'Site Search' feature. Just searching through [field_x] & [field_y] for
and returning results.

My trouble is...how would you work out the relevancy. I was thinking about just having it so the more times the word appears in the 'fields' the more relevant and as a result these records would be displayed first and cycle down.

Im just a little unsure how to produce this without masses of irrelevant code. Anyone have any code samples/tutorials or just general ideas about how to handle this?

I appreciate the help.

Thanks!

- FateFirst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top