Creating a search tool for ColdFusion applications

There are three main tasks in creating a search tool for your ColdFusion application:

  1. Create a collection.
  2. Index the collection.
  3. Design a search interface.

You can perform each task programmatically-that is, by writing CFML code. Alternatively, you can use the ColdFusion MX Administrator to create and index the collection. Also, HomeSite+ has a Verity Wizard that generates ColdFusion pages that index the collection and design a search interface. The following table summarizes the steps and available methods for creating the search tool:


Step

CFML
ColdFusion MX Administrator
Verity Wizard

Creating a collection

Yes

Yes

No

Indexing a collection

Yes

Yes

Yes

Designing a search interface

Yes

No

Yes

This chapter presents the non-code methods for developing a search tool, followed by code examples that perform the same task. If you have HomeSite+ and access to the ColdFusion MX Administrator, the fastest development method is as follows:

  1. Create the collection with the ColdFusion MX Administrator.
  2. Use the Verity Wizard to index the collection and design a search interface.

View comments on LiveDocs