Home arrow Site Administration arrow Page 6 - Site Search with HTDIG

A Well-Formed Plan - Administration

Want to add a search engine to your Web site but don't know how? Well, today's your lucky day! In this tutorial, find out how to obtain, install and use the popular ht://Dig indexing engine to add powerful, effective search capabilities to your site with minimal time and fuss.

TABLE OF CONTENTS:
  1. Site Search with HTDIG
  2. Digging Deep
  3. Source Control
  4. Script Barf
  5. Variable Control
  6. A Well-Formed Plan
  7. What You See
  8. Custom Job
  9. Out With The Old
  10. Caveat Emptor
  11. Ending The Dig
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 21
April 12, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

When ht://Dig is first installed, a sample search form is automatically installed into the directory specified via the "--with-search-dir" configuration parameter. In this particular example, I had specified that the form be installed to "/usr/local/apache/htdocs/htdig/sample" - so trot on over there and take a look inside:

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<html
<head
<title>ht://Dig WWW Search</title> 
</head> 
<body bgcolor="#eef7ff"> 
<h1> 
<a href="http://www.htdig.org"><IMG SRC="/htdig/images/htdig.gif" 
align="bottom" alt="ht://Dig" border="0"></a> 
WWW Site Search</h1> 
<hr noshade size="4"> 
This search will allow you to search the contents of 
all the publicly available WWW documents at this site. 
<br> 
<p> 
<form method="post" action="/cgi-bin/htsearch"> 
<font size="-1"> 
Match: <select name="method"> 
<option value="and">All 
<option value="or">Any 
<option value="boolean">Boolean 
</select> 
Format: <select name="format"> 
<option value="builtin-long">Long 
<option value="builtin-short">Short 
</select> 
Sort by: <select name="sort"> 
<option value="score">Score 
<option value="time">Time 
<option value="title">Title 
<option value="revscore">Reverse Score 
<option value="revtime">Reverse Time 
<option value="revtitle">Reverse Title 
</select> 
</font> 
<input type="hidden" name="config" value="htdig"> 
<input type="hidden" name="restrict" value=""> 
<input type="hidden" name="exclude" value=""> 
<br> 
Search: 
<input type="text" size="30" name="words" value=""> 
<input type="submit" value="Search"> 
</form> 
<hr noshade size="4"> 
</body> 
</html> 



 
 
>>> More Site Administration Articles          >>> More By icarus, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

SITE ADMINISTRATION ARTICLES

- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: