
521
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
Modifiers
You combine modifiers with operators to change the standard behavior of an operator in some way. The following
table describes the available modifiers:
Operator
Description
Example
YESNO
Forces the score of an element to 1 if the element’s score is nonzero.
<YESNO>mainframe
. If the retrieval result of
the search on mainframe is 0.75, the YESNO
operator forces the result to 1. You can use
YESNO to avoid relevance ranking.
PRODUCT
Multiplies the scores for the search elements in each document
matching a query.
<PRODUCT>(computers, laptops)
takes the
product of the resulting scores.
SUM
Adds the scores for the search element in each document matching a
query, up to a maximum value of 1.
<SUM>(computers, laptops)
takes the sum of
the resulting scores.
COMPLEMENT
Calculates scores for documents matching a query by taking the
complement (subtracting from 1) of the scores for the query’s search
elements. The new score is 1 minus the search element’s original
score.
<COMPLEMENT>computers
. If the search
element’s original score is .785, the
COMPLEMENT operator recalculates the score
as .215.
Modifier
Description
Example
CASE
Specifies a case-sensitive search. Normally, Verity searches are case-
insensitive for search text entered in all uppercase or all lowercase, and
case-sensitive for mixed-case search strings.
<CASE>Java OR <CASE>java
retrieves
documents that contain Java or java, but not
JAVA.
MANY
Counts the density of words, stemmed variations, or phrases in a
document and produces a relevance-ranked score for retrieved
documents. Use with the following operators:
•
WORD
•
WILDCARD
•
STEM
•
PHRASE
•
SENTENCE
•
PARAGRAPH
<PARAGRAPH><MANY>javascript <AND>
vbscript
.
You cannot use the MANY modifier with the
following operators:
•
AND
•
OR
•
ACCRUE
•
Relational operators
NOT
Excludes documents that contain the specified word or phrase. Use
only with the AND and OR operators.
Java <AND> programming <NOT> coffee
retrieves documents that contain Java and
programming, but not coffee.
ORDER
Specifies that the search elements must occur in the same order in
which you specify them in the query. Use with the following operators:
•
PARAGRAPH
•
SENTENCE
•
NEAR/N
Place the ORDER modifier before any operator.
<ORDER><PARAGRAPH> ("server", "Java")
retrieves documents that contain server
before Java.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...