User Guide
cfsearch 383
In this example, the single-quotation mark (') and backtick (`) characters are used as delimiters;
for more information, see Chapter 25, “Using Verity Search Expressions” in ColdFusion MX
Developer’s Guide.
To optimize search performance, always specify the
maxrows attribute, setting it to a value that
matches your application’s needs. A value less than 300 helps to ensure optimal performance.
Macromedia does not recommend using the
cflock tag with this tag; Verity provides the locking
function. Using the
cflock tag slows search performance.
The cfsearch tag result columns
Variable Description
context
A context summary containing the search terms, highlighted in bold (by
default). This is enabled if you set the
contextpassages attribute to a number
greater than zero.
url
Value of URLpath attribute in the cfindex tag used to populate a collection.
key
Value of the key attribute in the cfindex tag used to populate a collection.
title
Value of title attribute in cfindex tag used to populate the collection, including
PDF and Office document titles. If a title is not extracted from the document,
the tag uses the
cfindex title attribute value for each row.
score
Relevancy score of document based on search criteria
custom1, custom2,
custom3, custom4
Value of custom fields in cfindex tag used to populate a collection.
size
The number of bytes in the index document.
rank
The rank of this document in the search results.
author
Extracted from the HTML, Office, and PDF documents when available.
type
The MIME type of the document.
category
A list of the categories that were specified for this document when it was
indexed.
categoryTree
A hierarchical category tree, or serial list of categories, that was specified for
this document when it was indexed. Only a single tree is returned.
summary
Contents of automatic summary generated by cfindex.
recordCount
Number of records returned in record set
currentRow
Current row that cfoutput is processing.
columnList
List of column names within record set.
recordsSearched
Number of records searched. This is the same value for each row in the record
set. Corresponds to the
searched key in the status structure.