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, Purge purges 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. Optimize is no longer supported bycfindexin ColdFusion MX. Use thecfcollectiontag instead to optimize a collection.-
body="body" The actual text to index or a comma-delimited list of query column names containing text to index. Required when
typeisCustom; Ignored otherwise.-
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. In ColdFusion MX, collection names can now contain spaces. Required.
-
custom1="custom_value" Custom field that can store additional data for the collection. Optional.
-
custom2="custom_value" Custom field that can store additional data for the collection. Optional.
-
extensions="file_extensions" A comma-delimited list of file extensions to use when
typeis set toPath. The default is "HTM, HTML, CFM, CFML, DBM, DBML ...
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