User Guide
Chapter 1: ColdFusion Tags 25
CFCOLLECTION
The CFCOLLECTION tag allows you to create and administer Verity collections.
Syntax <CFCOLLECTION ACTION="action"
COLLECTION="collection"
PATH="implementation directory"
LANGUAGE="language">
ACTION
Required. Specifies the action to perform:
• CREATE — Creates a new collection using the specified path and optionally
specified language.
• REPAIR — Fixes data corruption in the collection.
• DELETE — Destroys the collection.
• OPTIMIZE — Purges and reorganizes data for efficiency.
• MAP — Assigns an alias to an existing Verity collection.
COLLECTION
Required. Specifies a collection name or an alias if the ACTION is MAP.
PATH
Required for CREATE and MAP. Specifies a path to the Verity collection. The effect
of the PATH attribute depends on the ACTION that you specify.
ACTION What happens?
CREATE
CFCOLLECTION creates a directory for the use of Verity. The
directory path is composed of the directory path specified in the
PATH attribute with the name specified in the COLLECTION
attribute appended to it. Thus, the full directory path is
"path_name\collection_name\." For example, if the path name is
"C:\Col\," and the collection name is "myCollection," the full
directory path is "C:\Col\myCollection\."
MAP
The MAP action provides a name with which ColdFusion can
reference an existing collection. This name is specified with the
COLLECTION attribute. It is an alias for the collection, which can
be used in CFINDEX, and to re-instate a collection after you have
re-installed ColdFusion. The directory path specified with the
PATH attribute is the full path name of the Verity directory.
Therefore, to reference the directory created in the previous
example, specify "C:\Col\myCollection\."