Tools or methods for site search
Zhanshan Dong
It is pretty cool for adding a search function in your personal website. There are several methods to deal with site search. Three years ago, I use ASP+ACCESS to implement the site search in my Programming Technology website when I wrote the ASP Gallery. It works pretty well. But for my Chinese pure HTML website, I do not know how to implement the site search function unitl recently I searched the Internet. I found several pretty good methods to do that. I write down this findings to share with friends.
FreeFind: FreeFind provide a pretty good solution for site search. The only thing that you have to do is to fill out a form in www.freefind.com and put a given link into you home page,and then they will do the rest. If you want see the effect you can try my site search function in the homepage. The pitful thing is sometimes they can not handle Chinese characters correctly. But this does not affect the search function.
Google: Everyone knows that Google provide a pretty intriguing search service in the internet world. But not everybody knows that they also provide free site search function to public. You can add theis service to your website pretty easily. The following source code is an example code I used for ICT international.
<FORM name=gs action=http://www.google.com/custom method=get target="_blank">
<INPUT type=hidden name=cof VALUE="T:black;LW:145;
L:http://www.ictinternational.com.au/images/logo.gif;
LH:200;AH:center;VLC:#551A8B;GL:0;
S:http://www.ictinternational.com.au/;">
<INPUT type=hidden value="www.ictinternational.com.au"
name=domains>
<INPUT type=hidden value=utf-8 name=hl>
<INPUT type=hidden value="www.ictinternational.com.au"
name=sitesearch CHECKED>
<center>
<INPUT maxLength=2048 size=20 name=q><FONT size=-1><br><INPUT
type=submit value="Site Search" name=btnG>
</FONT></FORM>
|
To use this code is pretty simple, replace the logo to yours, the domain name to yours. The only pitfall for this method is that it can not just indicate the subdirectory.
Search Engine Builder: This is a standalone program. You can use it to create the index for your website and then publish the database to your site and put a link in your homepage. It is not bad for personal and small website. That will rely on another other website and software because it use JavaScript to do the index.
|