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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need "search by keywords" feature

Status
Not open for further replies.

hapax

Programmer
Nov 10, 2006
105
US
I want to store items in a database. The columns for each item will be things like author, title, description.

I also want to somehow associate keywords with each item. These will be used for a search feature on a website, to locate items that have certain keywords. Each item can have one or more keywords.

What's the easiest way to develop a keyword search feature like this?

I think I could create a Keyword table that includes a new row for each keyword and item, so there would be tons of rows for each keyword/item pair.

But is there an easier way? I'm a lazy programmer, not a database guy. Maybe put the keywords all together in one record for each item, separated by commas? Not sure it this would be easy to search though - I guess I would do the search using LIKE in my SQL query.

What's your "best practice" recommendation?
 
Check Fulltext Search in BOL

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top