User Guide

Creating a Searchable Data Source 277
Selecting an indexing method
Use the following guidelines to determine which method to use:
Using ColdFusion Administrator
To use ColdFusion Administrator to index a collection:
1 Select a collection name in the Verity Collections box.
2 Click Index to open the index page.
3 Edit the File Extensions box so that it lists the types of files to index, either as a
single file type or multiple file types separated by commas.
4 Type in the directory path containing the files to be indexed or click Browse
Server and navigate to the directory in which to begin the index.
5 Select the Recursively Index Sub Directories box if you want to extend the
indexing operation to all directories below the selected path.
6 (Optional) Enter a Return URL to prepend to all indexed files. This step lets you
easily create a link to any of the files in the index. A typical entry is http://
localhost/wwwroot/.
7 (Optional) Select a language. You must have the International Language Search
Pack installed.
8 Click Submit Changes 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.
This interface lets you 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 focus on a specific group of documents or queries, according to
subject, document type, location, or any other logical grouping. Because searches
can be performed against multiple collections, you have substantial flexibility in
designing your search interface.
Use the Administrator if Use the cfindex tag if
You want to index document files. You want to index ColdFusion query results.
The collection will not be updated
frequently.
Your collection needs to be updated
frequently.
You want to generate the collection
without writing any CFML code.
You need to dynamically populate or update
a collection from a ColdFusion application
page.
You want to generate a one-time
collection.
Your collection needs to be updated by other
people.