Library tutorials & articles
Searching articles for hand-picked keywords
Introduction
There are many ways to implement a search on your site - I asked you to pick from three of them in the search survey I did recently. The method that most people picked entailed me reading every page on the site and hand-picking keywords. These keywords were entered into a new table, ArticlePages. You can get the source code for the entire site, including the database, here.
This table is used for many purposes, not just searching - the data for the breadcrumbs and previous/next page links in the articles are also stored here.
For searching purposes we are interested in just three fields: URL, ShortDescr and Keywords. I'll show you how I created a SSI to display and process the search form, turn the search expression into SQL and display the results.
Related articles
Related discussion
-
Binary Studio | software development outsourcing Ukraine
by Soft Industry (5 replies)
-
asp Request.QueryString("dir")
by realmeteo (1 replies)
-
Looking for Senior Web Designer
by lwsmedia (0 replies)
-
Read eMails from Outlook express using ASP
by kumaravelu (1 replies)
-
Help to Call ASP function from onclick event in HTML to pass an array
by vka (0 replies)
Related podcasts
-
Scott Guthrie
Scott catches up with Scott Guthrie in an interview covering Ajax, Asp 2.0, extender controls, CSS adapters and more.
sSearch = sSearch.replace ( /['"%]/g, '' );
Do you not need to create an instance of the type RegExp in oredr to get the replace function to work?
This thread is for discussions of Searching articles for hand-picked keywords.