User Guide

cfindex 197
urlpath="http://localhost/cfdocs/snippets"
custom1="custom1"
custom2="custom2"
recurse="no"
extensions=".htm, .html, .cfm, .cfml" >
<!--- for ACTION=UPDATE, #4 (TYPE=PATH)
(extensions are files with no extension) ---->
<cfindex
collection="snippets"
action="update"
type="path"
key="c:\inetpub\wwwroot\cfdocs\snippets"
urlpath="http://localhost/cfdocs/snippets"
custom1="custom1"
custom2="custom2"
recurse="no"
extensions="*." >
<!--- for ACTION=UPDATE, #5 (TYPE=PATH)
(extensions are files with any extension) ---->
<cfindex
collection="snippets"
action="update"
type="path"
key="c:\inetpub\wwwroot\cfdocs\snippets"
urlpath="http://localhost/cfdocs/snippets"
custom1="custom1"
custom2="custom2"
recurse="no"
extensions=".*">
<!--- for ACTION=UPDATE, #6 (TYPE=PATH) (where the key
is a query result set column) ---->
<cfquery name="bookquery"
datasource="book">
select * from book where bookid='path1' or bookid='path2'
</cfquery>
<cfoutput
query="bookquery">
--#url#,#description#-- <br>
</cfoutput>
<cfindex
collection="snippets"
action="update"
type="path"
query="bookquery"
key="description"
urlpath="url" >
<!--- for ACTION=UPDATE, #7 (TYPE=CUSTOM) ---->
<cfquery name="book"
datasource="book">
select * from book
</cfquery>
<cfindex
collection="custom_book"
action="update"
type="custom"
body="description"
key="bookid"