Name

CFINDEX —

Synopsis

<CFINDEX>

Creates an index to use with ColdFusion’s embedded Verity search engine.

Attributes

ACTION=" action "

Specifies the action for the CFINDEX tag to take. Optional. The default value is Update, which updates the index of the specified collection and adds the key if it doesn’t already exist. Delete deletes the key from the specified collection, Purge purges the specified collection of data and leaves it ready to be repopulated with new data, and Refresh clears the specified collection of all data and then repopulates it with new data. Optimize optimizes the specified collection, but this action has been superseded by the CFCOLLECTION tag.

COLLECTION=" collection_name "

The name of the Verity collection to perform the action on. If the collection being indexed is external, you must specify the full path to the collection. Required.

TYPE=" type "

The type of index to create. Optional. Custom indexes the contents of a ColdFusion query, File indexes a specific file, and Path indexes all files in the specified PATH with extensions specified in EXTENSIONS.

TITLE=" title "

The column name containing the title for each individual record being indexed. Required when TYPE is Custom.

KEY=" ID "

A unique identifier for each record in the index. Optional. An entry for KEY should specify one of the following: the document filename when TYPE is File, the full path when TYPE is Path, or a unique identifier such as the table’s primary key column when TYPE is ...

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.