spacer

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

home / web / dev / dndcgi

Advanced ICE Configuration

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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

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