User Guide

Table Of Contents
547
CHAPTER 24
Building a Search Interface
You can provide a full text search capability for documents and data sources on a ColdFusion site
by enabling the Verity search engine. Verity full text search lets people visiting your site use simple
one- and two-word searches to quickly find the information thFey need. You can use the more
robust Verity Query Language and the Verity advanced search operators to transparently
implement business-specific meaning behind searches. This allows even one word searches to
return accurate results.
This chapter describes how to build a Verity search interface with which users can perform
powerful searches on your site. It also describes how to index your documents and data sources so
that users can search them.
Contents
About Verity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
Creating a search tool for ColdFusion applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
Creating a search page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Enhancing search results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564
Working with data returned from a query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
About Verity
To efficiently search through paragraphs of text or files of varying types, you need full-text search
capabilities. Macromedia ColdFusion MX 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.