spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / web / dev / dndcgi

Advanced ICE Configuration

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

In this section, we show you how to create a thesaurus file and how to customize the search request form.

Thesaurus File Configuration

The thesaurus file is simply a text file that defines relationships between words. The ICE thesaurus supports three relationships:

The format of the thesaurus file is very simple. A word is placed on a line by itself. On the next line, one or more spaces or tabs are followed by the relation and the alternative word separated by one or more spaces or tabs. Listing 12.4 shows a -simple thesaurus file.

Listing 12.4 A sample ICE thesaurus file

doctor
   EQ physician
physician
   EQ doctor
doc
   AB doctor
doctor
   UF doc

ICE is a simple script, so these relationships are not very sophisticated. You must explicitly put in the EQ relations for both eventualities; that is, doctor EQ physician and physician EQ doctor. Also, the relations don't ``chain.'' For example, searching for ``doc'' in Listing 12.4 with substring matching off will match doctor because of the doc AB doctor relation. But it will not match physician by following a chain of doc AB doctor and doctor EQ physician. Nevertheless, the thesaurus function adds a nice bit of help to users searching your Web site. It's not hard to create, and your users will appreciate it. Once you've created and uploaded the file, be sure to edit the ice-form.cgi file to point to its location. We suggest putting the -thesaurus file in the same directory as the index file.


Comments are welcome

Copyright © 1997 Addison-Wesley Pub Co. and


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger

Created: Oct. 24, 1997
Revised: Oct. 27, 1997

URL: http://webreference.com/dev/dndcgi/advance.html