MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Applications - page 184
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: