Zetnet Services - Using the ht://Dig Search Engine
This document explains how to implement ht://Dig on your Zetnet hosted web site. Note this search facility is only available to those with their own domains hosted on a Zetnet commercial server (this excludes free domains on 'users' free space). Those using a Zetnet 'users' web address or a domain pointing at such an address should use the search script available here.
Each Zetnet commercially hosted site can have its own search engine. This engine uses ht://Dig and scans the site every morning, building a database as it goes.
The search engine is not automatically set up for you, but must be requested by sending a message to webweaver@zetnet.net saying "I would like a search engine on http://www.mydomain/"
Once the search engine has been set up, you can include the search facility anywhere on your site using HTML code similar to the example below:
<FORM METHOD="GET" ACTION="/cgi-bin/htsearch">
<INPUT TYPE=hidden NAME="restrict" VALUE="http://www.yourdomain/">
<TABLE BORDER=0 CELLPADDING=5>
<TR>
<TD ALIGN=CENTER>
Text to Search For:
</TD>
<TD COLSPAN=3 ALIGN=CENTER>
<INPUT TYPE=text NAME="words" SIZE=40>
</TD>
</TR>
<TR>
<TD>
Keywords to match:
</TD>
<TD>
<SELECT name="method">
<OPTION value=and>All
<OPTION value=or selected>Any
<OPTION value=boolean>Boolean
</SELECT>
</TD>
<TD ALIGN="right">
<INPUT TYPE=submit VALUE="Search!">
</TD>
<TD ALIGN="right">
<INPUT TYPE=reset>
</TD>
</TR>
</TABLE>
</FORM>
Note: Do not forget to replace the yourdomain with your domain's URL. |
|
The ht://Dig search facility is demonstrated below (using the above script), it is set to search this site. |