User Guide

Table Of Contents
Creating a search tool for ColdFusion applications 555
You can use cfcollection action="optimize" if you notice that searches on a collection take
longer than they did previously.
Updating an index
Documents are modified frequently in many user environments. After you index your
documents, any changes that you make are not reflected in subsequent Verity searches until you
re-index the collection. Depending on your environment, you can create a scheduled task to
automatically keep your indexes current. For more information on scheduled tasks, see
Configuring and Administering ColdFusion MX.
Creating a ColdFusion search tool programmatically
You can create a Verity search tool for your ColdFusion application in CFML. Although writing
CFML code can take more development time than using these tools, there are situations in which
writing code is the preferred development method.
Creating a collection with the cfcollection tag
The following are cases in which you might prefer using the
cfcollection tag rather than the
ColdFusion MX Administrator to create a collection:
You want your ColdFusion application to be able to create, delete, and maintain a collection.
You do not want to expose the ColdFusion MX Administrator to users.
You want to create indexes on servers that you cannot access directly; for example, if you use a
hosting company.
When using the
cfcollection tag, you can specify the same attributes as in the ColdFusion MX
Administrator:
To create the collection without writing any
CFML code
To dynamically update a collection from a ColdFusion
application page
To create a collection once When the collection requires updating by others
Attribute Description
action (Optional) The action to perform on the collection (create, delete, repair, or
optimize). The default value for the action attribute is list. For more
information, see
cfcollection in CFML Reference.
collection The name of the new collection, or the name of a collection upon which you will
perform an action.
path The location for the Verity collection.
language language
categories (Optional) Specifies that cfcollection create a Verity Parametric Index (PI) for
this collection. By default, the categories attribute is set to False. To create a
collection using categories specify Yes.
Use the Administrator Use the cfindex tag