Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 492

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
5
Enter a file location; for example, C:\ColdFusion9\wwwroot\vw_files.
Enter a URL prefix; for example, http://localhost:8500/vw_files (assuming that you are using the built-in web
6
server).
Click Index.
7
A confirmation message appears on successful completion.
Note: For information about using the
returned from a
query" on page 497.
Indexing a collection with the ColdFusion Administrator
As an alternative to programmatically indexing a collection, use the following procedure to index a collection with the
ColdFusion Administrator.
1
In the list of Verity Collections, select a collection name; for example, CodeColl.
2
Click Index to open the index page.
For File Extensions, enter the types of files to index. Use a comma to separate multiple file types; for example, .htm,
3
.html, .xls, .txt, .mif, .doc.
Enter (or Browse to) the directory path that contains the files to be indexed; for example,
4
C:\Inetpub\wwwroot\vw_files.
5
(Optional) To extend the indexing operation to all directories below the selected path, select the Recursively index
subdirectories check box.
6
(Optional) Enter a Return URL to prepend to all indexed files.
This step lets you create a link to any of the files in the index; for example, http://127.0.0.1/vw_files/.
(Optional) Select a language other than English.
7
For more information, see
Click Submit Changes.
8
On completion, the ColdFusion Collections page appears.
Note: 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 filename extension and path information you
enter. In most cases, you do not need to change your server file structures to accommodate the generation of indexes.
Creating a search page
You use the
tag to search an indexed collection. Searching a Verity collection is like a standard ColdFusion
cfsearch
query: both use a dedicated ColdFusion tag that requires a
object that contains rows matching the search criteria. The following table compares the two tags:
cfquery
Searches a data source
Requires a
name
attribute
tag with a database to index a collection, see
cfindex
"Specifying a
language" on page 479.
cfsearch
Searches a collection
Requires a
Last updated 1/20/2012
attribute for their searches and both return a query
name
name
attribute
487
"Working with data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents