There are three main tasks in creating a search tool for your ColdFusion application:
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: