CFINDEX

Used to manage update content inside the collections. This is the tag version of all the CollectionIndexXXX() functions.

Usage

<cfindex>

Attributes

Attribute default required summary
ATTRIBUTECOLLECTION A structure containing the tag attributes
ACTION Type of action to take: update|delete|purge|refresh
TYPE custom If ACTION=update|refresh, the type of update to take: custom|file|path|website
COLLECTION name of the collection
STATUS The name of the variable to store the resulting data. Used for ACTION=update|refresh
KEY the unique identifier for this document. If a document already exists, it will be removed and replaced with this one. If 'query' present, this is the column where the key is found
BODY the main content for this document. Depending on whether you have flagged the collection to store the body determines whether or not this is presented back in the results. It is advised not to store large quantities with the index. If 'query' present, this is the column where the content is found. You can specify a comma separated list of column names for multiple columns
TITLE title for the document. If 'query' present this is a column name
SUMMARY summary for the document. If 'query' present this is a column name. This column is not indexed, merely stored as a reference
AUTHOR author for the document. If 'query' present this is a column name
CATEGORY one or more categores, separated by a comma separated list. If 'query' present this is a column name
CATEGORYTREE the categorytree for this particular document. If 'query' present this is a column name
URLPATH the urlpath of this document. If 'query' present this is a column name
CUSTOMMAP a structure of custom atttributes that will be added to the document and indexed. The key of the structure element will be the field name and the value will be indexed. You can specify as many custom attributes as required. Each one is stored in the index as well. If 'query' then this is used for column names
QUERY the query representing all the rows to add to this index.
RECURSE false a flag to determine whether or not the path is recursed for sub-directories. TYPE=PATH
EXTENSIONS false a list of extensions to include in this crawl. defaults to '.cfm, .cfml, .htm, .html, .dbm, .dbml'. '.*'/'*.*' handles all files. TYPE=PATH

Extra

For more information on searching please visit Searching within OpenBD CFML