How to Put a Site Search Engine On Your Website

Install your own Search Engine Script or use a Remotely Hosted Search Engine


How to Put a Site Search Engine On Your Website

by Christopher Heng, thesitewizard.com

It always amazes me how many people use thesitewizard.com's internal search engine to look for specific articles. This is in spite of the fact that many of the commonly-sought articles are listed on the main page and all of them are indexed in the Site Map. It underlines the principle that different people have different methods of locating content on a site.

Search engines provide a convenient way for people to locate things on your site using the terms which they are familiar with. When they can easily find what they want on your site, they are less likely to go away disappointed when the content is actually available on your site albeit under a different name.

If you don't have a search engine catering specifically to your site, it's time you considered adding one. There are three ways you can go about doing it.

1. Installing Your Own Search Engine Script

The ideal way, in my opinion, is to install your own Perl search engine script or (if you prefer) PHP search engine script. This requires you to have CGI access (or PHP as the case may be) on your web account. If you don't know how to write one, or can't be bothered to do so, you can get one of the numerous free search engine scripts and adapt it to your site. You can find a list of some free search engine Perl CGI scripts at http://www.thefreecountry.com/perlscripts/searchengines.shtml and some free PHP search engine scripts at http://www.thefreecountry.com/php/site-search-engine-scripts.shtml

In general there are two types of PHP or CGI search engine scripts. One will search your entire website for the relevant article each time your visitor invokes the search engine. The other creates an index of your site and only searches the index when the visitor uses the engine. The former is easier to configure and use for the newcomer, but quickly becomes sluggish when your website grows big. The latter is more efficient, but often requires you to remember to re-index your site each time you change your pages.

Installing your own search engine script has, at the very least, the following advantages:

Disadvantages include:

2. Using a Free or Commercial Third Party Search Engine Service

If installing a PHP or Perl CGI script is a problem, or if you prefer to let others handle the hassle (not really much of one actually) of maintaining the engine, you can use one of the many free or commercial search engine services. These services index your site for you and provide you with the HTML code to plug into your web pages. That's it. You have a working search engine for your site with little of the installation woes.

A list of Free Search Engine Remote Hosting Services may be obtained from http://www.thefreecountry.com/scripthosting/searchengines.shtml

Advantages of using the free search engine script remote hosting services include:

Disadvantages:

3. Using the Major Search Engines

Few people realise this, but you can actually use the major search engines like Google as your site's search engine, free of charge.

To do this with Google, go to Google Custom Search Engine and complete the online form.

This method has not only the disadvantages of using third party remote hosting services listed above, it has also the following additional disadvantages:

Conclusion

Adding a search engine improves your site navigation. In allowing your visitors another means to locate items on your site, you are increasing the likelihood that they will find your site useful, bookmark your site, buy your goods/services, and so on.

With so many alternatives to adding a search engine to your site, most of them free, there is really little reason not to do so now (unless, of course your site is a one page site).

Copyright 2001-2008 by Christopher Heng. All rights reserved.
Get more free tips and articles like this, on web design, promotion, revenue and scripting, from http://www.thesitewizard.com/

If you find this article useful, please consider making a donation.

thesitewizard™ News Feed (RSS Site Feed)  Subscribe to thesitewizard.com newsfeed

Do you find this article useful? You can learn of new articles and scripts that are published on thesitewizard.com by subscribing to the RSS feed. Simply point your RSS feed reader or a browser that supports RSS feeds at http://www.thesitewizard.com/thesitewizard.xml. You can read more about how to subscribe to RSS site feeds from my RSS FAQ.

Please Do Not Reprint This Article

This article is copyrighted. Please do not reproduce this article in whole or part, in any form, without obtaining my written permission.

Related Pages

New Pages

Popular Pages

How to Link to This Page

It will appear on your page as:

How to Put a Site Search Engine On Your Website






Home
Donate
Contact Us
Link to Us
Topics
Site Map

Getting Started
Web Design
Search Engines
Revenue Making
Web Hosting
Blogging
JavaScripts
PHP
Perl / CGI
CSS
.htaccess / Apache
Newsletters
General
Seasonal
Reviews
FAQs
Wizards

 

 
Free webmasters and programmers resources, scripts and tutorials
 
HowtoHaven.com: Free How-To Guides
 
Site Design Tips at thesitewizard.com
Find this site useful?
Please link to us.