Adobe COLDFUSION 9 Manual page 503

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
When indexing a recordset retrieved from a database, the
to the data source:
Attribute
Description
Primary key column of the data source table.
key
title
Specifies a query column name.
body
Columns that you want to search for the index.
type
If set to
that contains either a directory path and filename, or a directory path that contains the documents to be indexed.
Using the
tag to index tabular data is like indexing documents, with the exception that you refer to column
cfindex
names from the generated recordset in the
specifying that the
cfindex
Salary, which are identified using the
primary key for the recordset.
Index a ColdFusion query
1
Create a Verity collection for the data that you want to index.
The following example assumes that you have a Verity collection named CodeColl. You can use the ColdFusion
Administrator to create the collection, or you can create the collection programmatically by using the
tag. For more information, see
cfcollection
page 481 or
"Creating a collection with the cfcollection
2
Create a ColdFusion page with the following content:
custom
, this attribute specifies the columns that you want to index. If set to
attribute. In the following example, the
body
tag index the contents of the recordset columns Emp_ID, FirstName, LastName, and
attribute. The Emp_ID column is listed as the
body
"Creating a collection with the ColdFusion
Last updated 8/5/2010
tag uses the following attributes that correspond
cfindex
tag" on page 482.
file
or
path
, this is a column
attribute is set to
type
custom
attribute, making it the
key
Administrator" on
498
,

Advertisement

Table of Contents
loading

Table of Contents