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.
Summary of Contents for COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...