Name
CFINDEX —
Synopsis
<CFINDEX>
Creates an index to use with ColdFusion’s embedded Verity search engine.
Attributes
-
ACTION="action" Specifies the action for the
CFINDEXtag 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.Deletedeletes the key from the specified collection,Purgepurges the specified collection of data and leaves it ready to be repopulated with new data, andRefreshclears the specified collection of all data and then repopulates it with new data.Optimizeoptimizes the specified collection, but this action has been superseded by theCFCOLLECTIONtag.-
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.
Customindexes the contents of a ColdFusion query,Fileindexes a specific file, andPathindexes all files in the specifiedPATHwith extensions specified inEXTENSIONS.-
TITLE="title" The column name containing the title for each individual record being indexed. Required when
TYPEisCustom.-
KEY="ID" A unique identifier for each record in the index. Optional. An entry for
KEYshould specify one of the following: the document filename whenTYPEisFile, the full path whenTYPEisPath, or a unique identifier such as the table’s primary key column whenTYPEis ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access