User Guide

Table Of Contents
Creating a search tool for ColdFusion applications 553
You can register collections in the ColdFusion MX Administrator or by creating a collection with
the
cfcollection tag. If you register a given collection with ColdFusion and you specify a
language attribute, you do not have to specify the language attribute when using cfindex and
cfsearch tags for that collection. If you do not register a given collection with ColdFusion,
ColdFusion uses English (Basic), the default language, unless you specify the language in the
language attribute for the cfindex and cfsearch tags for that collection.
Note: When you search a collection in a language other than English, you must translate operators
such as AND and OR into the language of the collection.
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 a collection.
This chapter presents the noncoding methods for developing a search tool, followed by code
examples that perform the same task.
Creating a collection with the ColdFusion MX Administrator
Use the following procedure to quickly create a collection with the ColdFusion MX
Administrator:
To create a collection with the ColdFusion MX Administrator:
1.
In the ColdFusion MX Administrator, select Data & Services > Verity Collections.
The Verity Collections page appears.
2.
Enter a name for the collection; for example, DemoDocs.
Norwegian norwegian
Norwegian (Bokmal) bokmal
Norwegian (Nynorsk) nynorsk
Polish polish
Portuguese portuguese
Russian russian
Spanish spanish
Swedish swedish
Turkish turkish
Language Language attribute