Adobe COLDFUSION 9 Manual page 507

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Search and display the file
Create a ColdFusion page that contains the following content:
<!--- Output the record set.--->
<p>Your collection now includes the following items:</p>
<cfoutput query="getEmps">
<p>#Emp_ID# #FirstName# #LastName# #Contract_File#</p>
</cfoutput>
<cfsearch
collection="#Form.collname#"
name="getEmps"
criteria="#Form.Criteria#"
maxrows = "100">
<!--- Output the filename contained in the record set. --->
<cfoutput>
Your search returned #getEmps.RecordCount# file(s).
</cfoutput>
<cfoutput query="getEmps">
<p><table>
<tr><td>Title: </td><td>#Title#</td></tr>
<tr><td>Score: </td><td>#Score#</td></tr>
<tr><td>Key: </td><td>#Key#</td></tr>
<tr><td>Summary: </td><td>#Summary#</td></tr>
<tr><td>Custom 1:</td><td>#Custom1#</td></tr>
<tr><td>Column list: </td><td>#ColumnList#</td></tr>
</table></p>
</cfoutput>
Indexing a path returned by using a query
You can index a directory path to a document (or collection of documents) using a query by retrieving a row whose
contents are a full directory path name. In this case, the key specifies the column that contains the complete directory
path. Documents located in the directory path are indexed using the
root folder.
In this example, the
attribute is set to
type
Project_Docs column contains directory paths, which Verity indexes as if they are specified as a fixed path pointing to
a collection of documents without the use of a query.
Index a directory path within a query
Create a ColdFusion page that contains the following content:
1
cfindex
, and the
attribute is assigned the column name Project_Docs. The
path
key
Last updated 8/5/2010
tag as if they are under the web server
502

Advertisement

Table of Contents
loading

Table of Contents