Chapter 11: Indexing and Searching Data
153
•
Spanish
•
Swedish
The default language for Verity collections is English. To index data in one of the
supported languages, you must select the language from the drop-down list when you
create a collection on the ColdFusion Administrator Verity page. You must then enter
the selected language as a value of the LANGUAGE attribute in both the CFINDEX and
CFSEARCH tags used against that collection.
To order the Language Pack, contact Allaire Customer Service or visit our online store
at
http://
www.allaire.com/store
. The default installation directory for the
dictionaries is in
\cfusion\verity\common
.
Steps in Creating a Searchable Data Source
There are several steps in creating a searchable data source:
1.
Create a collection.
This can be done either through the ColdFusion Administrator or
programmatically.
2.
Populate and index the collection
This involves selecting the data and generating the index.
3.
Design a search interface and a results page so that users can access the
searchable data source.
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 templates.
•
Binary documents (see the Supported File Types list).
•
Result sets returned from CFQUERY, CFLDAP, and CFPOP queries.
You can build a collection from individual documents or an entire directory tree.
Collections can be stored anywhere, so you have a lot of flexibility in accessing indexed
data. This adds enormous value to any content-rich Web site.
ColdFusion provides twodifferent ways to create a Verity collection. You can:
•
Make selections on the ColdFusion Administrator Verity page
•
Code the CFCOLLECTION tag
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...