User Guide
Chapter 1: ColdFusion Tags 105
CFINDEX
Use the CFINDEX tag to populate collections with indexed data. CFINDEX and
CFSEARCH encapsulate the Verity indexing and searching utilities. Verity collections
can be populated from either text files in a directory you specify, or from a query
generated by any ColdFusion query. Before you can populate a Verity collection, you
need to create the collection using either the CFCOLLECTION tag or the ColdFusion
Administrator. Use CFSEARCH to search collections you populate with CFINDEX.
Syntax <CFINDEX COLLECTION="collection_name"
ACTION="action"
TYPE="type"
TITLE="title"
KEY="ID"
BODY="body"
CUSTOM1="custom_value"
CUSTOM2="custom_value"
URLPATH="URL"
EXTENSIONS="file_extensions"
QUERY="query_name"
RECURSE="Yes/No"
EXTERNAL="Yes/No"
LANGUAGE="language">
COLLECTION
Required. Specifies a collection name. If you are indexing an external collection
(EXTERNAL is "Yes"), specify the collection name, including fully qualified path:
COLLECTION="e:\collections\personnel"
You cannot combine internal and external collections in the same indexing
operation.
ACTION
Optional. Specifies the index action. Valid entries are:
• Update — Updates the index and adds the key specified in KEY to the index if it
is not already defined.
• Delete — Deletes the key specified in KEY in the specified collection.
• Purge — Deletes data in the specified collection leaving the collection intact for
re-population.
• Refresh — Clears data in the specified collection prior to re-populating it with
new data.
• Optimize — Optimizes the specified collection of files. This action is
deprecated; use CFCOLLECTION instead.
TYPE
Optional. Specifies the type of entity being indexed. Default is CUSTOM. Valid
entries are: