To index a group of files such as HTML, CFML, or ASCII text files, first define the collection using the Cold Fusion Verity Administrator, then, point the CFX_INDEX tag at a specified directory or file, as in the following example:
<CFX_INDEX COLLECTION = "HOME" TYPE = "PATH" KEY = "C:\INETPUB\WWWROOT\HOME" URLPATH = "http://127.0.0.1/home" EXTENSIONS = ".htm, .html, .cfm, .cfml, .dbm, .dbml" RECURSE = "YES">
You can place this code in a template you call whenever you need to
update the collection.
The following code indexes all HTML and CFML documents on your C:\ drive:
<CFX_INDEX COLLECTION = "DOCS" TYPE = "PATH" KEY = "C:\" EXTENSIONS = ".htm, .html, .cfm, .cfml" RECURSE = "YES">