User Guide

238 Chapter 2: ColdFusion Tags
Status attribute
The status attribute provides the following information and diagnostics about the result of a
cfindex operation:
Example
<!--- EXAMPLE #1 Index a file, type = "file". ---------------------------->
<!--- Example dumps content of status variable (info). ------------------->
<cfindex collection="CodeColl"
action="refresh"
type="file"
key="C:\blackstone\wwwroot\vw_files\cfindex.htm"
urlpath="http://localhost:8500/vw_files/"
language="English"
title="Cfindex Reference page"
status="info">
<!--- Search for Attributes. --->
<cfsearch
name = "mySearch"
collection = "CodeColl"
criteria = "Attributes"
contextpassages = "1"
maxrows = "100">
<cfoutput>
key=#mySearch.key#<br />
title=#mySearch.title#<br />
context=#mySearch.context#<br />
url=#mySearch.url#<br />
</cfoutput>
<cfdump var="#info#">
<!--- EXAMPLE #2 Index a path (type = "path"). ------------------------------>
<cfindex collection="CodeColl"
action="refresh"
type="path"
key="C:\inetpub\wwwroot\vw_files\newspaper\sports"
urlpath="http://localhost/vw_files/newspaper/sports"
extensions = ".htm, .html"
recurse="no"
Key Type Description
BADKEYS Struct A structure of keys with diagnostic messages about the indexing of
these keys. If there are no bad keys, this key does not exist.
DELETED Number The number of keys deleted.
MESSAGES Array An array of diagnostic messages, including nonfatal errors and
warnings, returned from the Verity K2 Index server. If there are no
messages, this key does not exist.
INSERTED Number The number of keys inserted into the collection.
UPDATED Number The number of keys updated in the collection.