Chapter 1: ColdFusion Tags
105
CFINDEX
Use the CFINDEX tag to populate collections with indexed data. CFINDEX and
CFSEARCH
encapsulate the Verity indexing and searching utilities. Verity collections
can be populated from either text files in a directory you specify, or from a query
generated by any ColdFusion query. Before you can populate a Verity collection, you
need to create the collection using either the
CFCOLLECTION
tag or the ColdFusion
Administrator. Use CFSEARCH to search collections you populate with CFINDEX.
Syntax
<CFINDEX COLLECTION="collection_name"
ACTION="action"
TYPE="type"
TITLE="title"
KEY="ID"
BODY="body"
CUSTOM1="custom_value"
CUSTOM2="custom_value"
URLPATH="URL"
EXTENSIONS="file_extensions"
QUERY="query_name"
RECURSE="Yes/No"
EXTERNAL="Yes/No"
LANGUAGE="language">
COLLECTION
Required. Specifies a collection name. If you are indexing an external collection
(EXTERNAL is "Yes"), specify the collection name, including fully qualified path:
COLLECTION="e:\collections\personnel"
You cannot combine internal and external collections in the same indexing
operation.
ACTION
Optional. Specifies the index action. Valid entries are:
•
Update — Updates the index and adds the key specified in KEY to the index if it
is not already defined.
•
Delete — Deletes the key specified in KEY in the specified collection.
•
Purge — Deletes data in the specified collection leaving the collection intact for
re-population.
•
Refresh — Clears data in the specified collection prior to re-populating it with
new data.
•
Optimize — Optimizes the specified collection of files. This action is
deprecated; use CFCOLLECTION instead.
TYPE
Optional. Specifies the type of entity being indexed. Default is CUSTOM. Valid
entries are:
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...