User Guide

382 Chapter 2: ColdFusion Tags
Usage
The cfsearch tag returns a query object whose columns you can reference in a cfoutput tag. For
example, the following code specifies a search for the exact terms "filming" or "filmed":
<cfsearch
name = "mySearch"
collection = "myCollection"
criteria = '<WILDCARD>`film{ing,ed}`'
type="explicit"
startrow=1
maxrows = "100">
<cfdump var = "#mySearch#>
suggestions Optional never Specifies whether Verity returns spelling suggestions
for possibly misspelled words. Use one of the
following options:
Always: Verity always returns spelling suggestions.
Never: Verity never returns spelling suggestions.
positive integer: Verity returns spelling suggestions
if the number of documents retrieved by the search
is less than or equal to the number specified.
There is a small performance penalty for retrieving
suggestion data.
contextPassages Optional 0 The number of passages/sentences Verity returns in
the context summary (that is, the
context column of
the results). The default i s 0, which disables context
summary.
contextBytes Optional 300 The maximum number of bytes Verity returns in the
context summary.
contextHighlightBegin Optional <b> The HTML to prepend to search terms in the context
summary. Use this attribute in conjunction with
contextHighlightEnd to highlight search terms in the
context summary.
contextHighlightEnd Optional </b> The HTML to append to search terms in the context
summary. Use this attribute in conjunction with
contextHighlightBegin to highlight search terms in
the context summary.
previousCriteria Optional The name of a result set from an existing set of search
results. Verity searches the result set for
criteria
without regard to the previous search score or rank.
Use this attribute to implement searching within result
sets.
language Optional english Deprecated. This attribute is now ignored and the
language of the collection is used to perform the
search.
Attribute Req/Opt Default Description