Adobe COLDFUSION 9 Manual page 526

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Operator
Description
YESNO
Forces the score of an element to 1 if the element's score is nonzero.
PRODUCT
Multiplies the scores for the search elements in each document
matching a query.
SUM
Adds the scores for the search element in each document matching a
query, up to a maximum value of 1.
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.
Modifiers
You combine modifiers with operators to change the standard behavior of an operator in some way. The following
table describes the available modifiers:
Modifier
Description
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.
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
NOT
Excludes documents that contain the specified word or phrase. Use
only with the AND and OR operators.
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.
Last updated 8/5/2010
Example
<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>(computers, laptops) takes the
product of the resulting scores.
<SUM>(computers, laptops) takes the sum of
the resulting scores.
<COMPLEMENT>computers. If the search
element's original score is .785, the
COMPLEMENT operator recalculates the score
as .215.
Example
<CASE>Java OR <CASE>java retrieves
documents that contain Java or java, but not
JAVA.
<PARAGRAPH><MANY>javascript <AND>
vbscript.
You cannot use the MANY modifier with the
following operators:
AND
OR
ACCRUE
Relational operators
Java <AND> programming <NOT> coffee
retrieves documents that contain Java and
programming, but not coffee.
<ORDER><PARAGRAPH> ("server", "Java")
retrieves documents that contain server
before Java.
521

Advertisement

Table of Contents
loading

Table of Contents