
506
Chapter 24: Building a Search Interface
About Verity
To efficiently search through paragraphs of text or files of varying types, you need full-text search
capabilities. ColdFusion includes the Verity search engine, which provides full-text indexing and
searching.
The Verity engine performs searches against collections, not against the actual documents
.
A
collection
is a special database created by Verity that contains metadata that describes the
documents that you have indexed. The
indexing
process examines documents of various types in a
collection and creates a metadata description—the
index
—which is specialized for rapid search
and retrieval operations.
The ColdFusion implementation of Verity supports collections of the following basic data types:
•
Text files such as HTML pages and CFML pages
•
Binary documents (see
“Supported file types” on page 507
)
•
Record sets returned from
cfquery
,
cfldap
, and
cfpop
queries
You can build collections from individual documents or from an entire directory tree. Collections
can be stored anywhere, so you have much flexibility in accessing indexed data.
In your ColdFusion application, you can search multiple collections, each of which can focus on a
specific group of documents or queries, according to subject, document type, location, or any
other logical grouping. Because you can perform searches against multiple collections, you have
substantial flexibility in designing your search interface.
Using Verity with ColdFusion
Here are some ways to use Verity with ColdFusion:
•
Index your website and provide a generalized search mechanism, such as a form interface, for
executing searches.
•
Index specific directories containing documents for subject-based searching.
•
Index
cfquery
record sets, giving users the ability to search against the data. Because
collections contain data optimized for retrieval, this method is much faster than performing
multiple database queries to return the same data.
•
Index
cfldap
and
cfpop
query results.
•
Manage and search collections generated outside of ColdFusion using native Verity tools. This
additional capability requires only that the full path to the collection be specified in the index
and search commands.
•
Index e-mail generated by ColdFusion application pages and create a searching mechanism for
the indexed messages.
•
Build collections of inventory data and make those collections available for searching from
your ColdFusion application pages.
•
Support international users in a range of languages using the
cfindex
,
cfcollection
, and
cfsearch
tags.
Summary of Contents for COLDFUSION MX 61-DEVELOPING COLDFUSION MX
Page 1: ...Developing ColdFusion MX Applications...
Page 22: ...22 Contents...
Page 38: ......
Page 52: ...52 Chapter 2 Elements of CFML...
Page 162: ......
Page 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Page 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Page 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Page 266: ......
Page 314: ...314 Chapter 14 Handling Errors...
Page 344: ...344 Chapter 15 Using Persistent Data and Locking...
Page 349: ...About user security 349...
Page 357: ...Security scenarios 357...
Page 370: ...370 Chapter 16 Securing Applications...
Page 388: ...388 Chapter 17 Developing Globalized Applications...
Page 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Page 410: ......
Page 426: ...426 Chapter 19 Introduction to Databases and SQL...
Page 476: ...476 Chapter 22 Using Query of Queries...
Page 534: ...534 Chapter 24 Building a Search Interface...
Page 556: ...556 Chapter 25 Using Verity Search Expressions...
Page 558: ......
Page 582: ...582 Chapter 26 Retrieving and Formatting Data...
Page 668: ......
Page 734: ...734 Chapter 32 Using Web Services...
Page 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Page 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Page 788: ......