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

Search for keywords within a website

Status
Not open for further replies.

mazzystar

Technical User
Jan 7, 2002
13
CA
Hey there,
A client who uses Front Page has asked me if it is possible to set up a keyword search feature for their website so visitors can input a keyword and get a list of all pages where that keyword appears.

Is there a simple way of doing it?

 
The simpliest search engine I saw is enough complicated to implement with PHP, but easy to understand.It's composed of 3 scripts : an indexer, a form for submiting keywords and a script for extracting and viewing the results. I will look into the script and give you the url when you can find it.
I can explain to you later. The comments are in french.

An indexer is a program that seeks all the html files within a directory and put all key words in a database (wich can be a text file). These keywords are pointing to webpages that contain them (sometimes its reverses : entries of the tables are the filepaths and contents are the keywords).
The indexer is launched periodically (e.g. once a day at 03:00 am). It scans all the file content, strip HTML tags and scripts, skips unsignificant words such 'do', 'the', 'with'. It stores the results in the database.

Some indexers just considere the title and META TAG 'keywords', assuming that they exist.

 
The most simplest way to do it is by registering the site with google, let all pages get indexed. Then you can request google to allow a link (google) in your site with a search within a site link.
 
Hi mate,

There are loads of good search scripts out there..

Just take a look at or other similar sites and you are guaranteed to find one to suit your needs.

If you don't have cgi or php on the server then you will likely have to use an external site to provide you with the search.

I personally could do this for you from my search site if you need it..

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top