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 isUpdate
, 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, andRefresh
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 theCFCOLLECTION
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, andPath
indexes all files in the specifiedPATH
with extensions specified inEXTENSIONS
.-
TITLE="
title
"
The column name containing the title for each individual record being indexed. Required when
TYPE
isCustom
.-
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 whenTYPE
isFile
, the full path whenTYPE
isPath
, or a unique identifier such as the table’s primary key column whenTYPE
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.