Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 529

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
• cf_custom1
• cf_custom2
• cf_custom3
• cf_custom4
Text comparison operators can also reference the following automatically populated document fields:
• title
• key
• url
• vdksummary
• author
• mime-type
To explore how to use document fields to refine a search, consider the following database table, named Calls. This table
has four columns and three records, as the following table shows:
call_ID
Problem_Description
1
Can't bold text properly under certain conditions
2
Certain optional attributes are acting as required attributes
3
Can't do a File/Open in certain cases
A Verity search for the word certain returns three records. However, you can use the document fields to restrict your
search; for example, a search to retrieve HomeSite+ problems with the word certain in the problem description.
These are the requirements to run this procedure:
• Create and populate the Calls table in a database of your choice
• Create a collection named Training (you can do this in CFML or in the ColdFusion Administrator).
The following table shows the relationship between the database column and
Database column
The cfindex
attribute
call_ID
key
Problem_Description
body
Short_Description
title
Product
custom1
You begin by selecting all data in a query:
<cfquery name = "Calls" datasource = "MyDSN">
Select * from Calls
</cfquery>
The following code shows the
data):
Comment
The primary key of a database table is often a key attribute.
This column is the information to be indexed.
A short description is conceptually equivalent to a title, as in a running title of a journal
article.
This field refines the search.
tag for indexing the collection (the
cfindex
Last updated 1/20/2012
Short_Description
Product
Bold Problem
HomeSite+
Attributes Problem
ColdFusion
File Open Problem
HomeSite+
attribute:
cfindex
attribute is set to custom for tabular
type
524

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents