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.
Содержание COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
Страница 1: ...COLDFUSION MX7 CFML Reference...
Страница 20: ...20 Chapter 1 Reserved Words and Variables...
Страница 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Страница 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Страница 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Страница 311: ...cfNTauthenticate 311 Please Try again H2 cfif cfoutput cfinclude template loginform cfm cfabort cfif cfif cflogin...
Страница 411: ...cftable 411 cftable body html...
Страница 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Страница 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Страница 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Страница 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Страница 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Страница 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Страница 693: ...IsWDDX 693 struct data wddxPacket hr xmp cfoutput packet xmp IsWDDX returns IsWDDX packet br cfoutput...
Страница 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Страница 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Страница 869: ...StructIsEmpty 869 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Страница 903: ...Val 903 value Is the beginning numeric name form...
Страница 932: ...932 Chapter 3 ColdFusion Functions...
Страница 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Страница 962: ...962 Chapter 5 Application CFC Reference...
Страница 1008: ...1008 Chapter 6 ColdFusion MX Event Gateway Reference cfset retValue Reason reason cfreturn retValue cffunction...
Страница 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...