158
Developing Web Applications with ColdFusion
5.
Check the Recursively index subdirectories box if you want to extend the indexing
operation to all directories below the selected path.
6.
Optionally, you can enter a Return URL to prepend to all indexed files. This allows
you to easily create a link to any of the files in the index. A typical entry might be
something like
http://localhost/wwwroot/
.
7.
If the International Language Search Pack is installed, you can select one of the
supported languages.
8.
Click Update to begin the indexing process. The time required to generate the
index depends on the number and size of the selected files in the path.
As you can see, this interface allows you to easily build a very specific index based on
the file extension and path information you enter. In most cases, you do not need to
change your server file structures to accommodate the generation of indices.
In your ColdFusion application, you can populate and search multiple collections,
each of which can be designed to focus on a specific group of documents or queries,
according to subject, document type, location, or any other logical grouping. Searches
can be performed against multiple collections, giving you lots of flexibility in designing
your search interface.
Using CFINDEX
To select which collection to index:
1.
Open a new file in Studio.
2.
Modify the file so that it appears as follows:
<HTML>
<HEAD>
<TITLE>Select the Collection to Index</TITLE>
</HEAD>
<H2>Pick which index you want to build</H2>
<FORM METHOD="Post" ACTION="collectionindexaction.cfm">
<P>Enter the collection you want to populate:
<INPUT TYPE="text" NAME="IndexColl" SIZE="25" MAXLENGTH="35"></P>
<P>Enter the location of the files in the collection:
<INPUT TYPE="text" NAME="IndexDir" SIZE="50" MAXLENGTH="100"></P>
<INPUT TYPE="submit" NAME="submit" VALUE="Index">
</FORM>
</BODY>
</HTML>
3.
Save the file as
collectionindexform.cfm
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...