384
Chapter 2: ColdFusion Tags
Status structure keys
To permit application users to search Verity collections for nonstandard strings, words, or
characters (for example, "AB23.45.67" or "--->") that would otherwise cause an error, you can
create a text file that lists these elements and defines their formats for Verity. Name the file
style.lex and put copies of the file in these directories:
•
Windows:
■
cf_root
\verity\k2\common\style (typically,
cf_root
= C:\CFusionMX7)
■
cf_root
\verity\Data\stylesets\ColdFusionK2
•
UNIX:
■
cf_root
//verity/k2/common/style (typically,
cf_root
= /opt/coldfusionmx7)
■
cf_root
/verity/Data/stylesets/ColdFusionK2
In the multiserver and J2EE configurations, you install Verity in a separate directory.
Note:
To search for a character such as an angle bracket (< or >), you must use a
criteria
attribute
value such as
"<:"
or
"<:"
. The bracket characters are reserved in Verity, and using a backslash
to escape the character (
criteria="\<"
) does not work in this context. For more information, see
Chapter 25, “Using Verity Search Expressions” in
ColdFusion MX Developer’s Guide
.
Example
<!--- #1 (TYPE=SIMPLE) ----------------------------->
<cfsearch
name="name"
collection="snippets,syntax,snippets"
criteria="example"
maxrows = "100">
<p>
<cfoutput>Search Result total = #name.RecordCount# </cfoutput><br>
<cfoutput>
url=#name.url#<br>
key=#name.key#<br>
Variable
Description
found
The number of documents that contain the search criteria.
searched
The number of documents searched. Corresponds to the
recordsSearched
column in the search results.
time
The number of milliseconds the search took, as reported by the Verity K2
search service.
suggestedQuery
An alternative query, as suggested by Verity, that might produce better results.
This often contains corrected spellings of search terms. Present only when the
suggestions
tag attribute criteria is met.
keywords
A structure containing each search term as a key to an array of up to five
possible alternative terms, in order of preference. Present only when the
suggestions
attribute criteria is met.
keywordScore
A structure in the same format as for keywords, except it also includes Verity-
reported weighted values from 0 to .99, in which higher scores indicate better-
quality results.
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...