Creating a Searchable Data Source
273
Creating a Searchable Data Source
You must do the following steps to create a searchable data source:
1
Create a collection.
You can do this either through the ColdFusion Administrator or
programmatically.
2
Populate and index the collection.
You must select the data and generate the index. You can perform this task either
through the ColdFusion Administrator or programmatically.
3
Design a search interface and a results page so that users can access the
searchable data source.
You can use the Verity Wizard in ColdFusion Studio to create ColdFusion pages that
index and search a collection. (The wizard does not create a page for creating the
collection.) To run the wizard, select
File > New
and select the Verity Wizard from the
CFML tab in the New Document dialog box.
Creating a Collection
The Verity engine performs searches against collections. A
collection
is a special
database created by Verity that contains pointers to the indexed data that you specify
for that collection. ColdFusion’s Verity implementation supports collections of three
basic data types:
•
Text files such as HTML pages and CFML pages
•
Binary documents (see “Supported File Types” on page 271)
•
Result sets returned from
cfquery
,
cfldap
, and
cfpop
queries
You can build a collection from individual documents or from an entire directory
tree. Collections can be stored anywhere, so you have a great deal of flexibility in
accessing indexed data.
You can use either of the following methods to create a Verity collection:
•
Make selections on the ColdFusion Administrator Verity Collections page
•
Code the
cfcollection
tag
Using the ColdFusion Administrator to create a collection
You can use the ColdFusion Administrator to create a new collection or map an
existing collection.
Creating a new collection
Use the following procedure to create a new collection.
To create a collection:
1
Open the ColdFusion Administrator Verity Collections page.
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...