178
The following table lists the score operators.
Verity Score Operators
Operator
YESNO
PRODUCT
SUM
COMPLEMENT
Modifiers
Modifiers can be used with operators to further refine query expressions. You can
specify case sensitivity in a query, or force the output to be ranked by relevancy.
Modifiers include:
CASE — Sets case sensitivity. Verity searches are case-insensitive for search text
entered in all uppercase or all lowercase. Case sensitivity is turned on when
mixed case characters are entered.
MANY — Results are ranked by relevancy, which is determined by the number
of times the search value is found in a document.
NOT — Eliminates documents containing the specified words.
ORDER — Returns documents only if they contain words in the listed order.
Developing Web Applications with ColdFusion
Description
Forces the score of an element to 1 if the element's score is non-
zero:
<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.
Multiplies the scores for documents matching a query. To arrive at
a document's score, the search engine calculates a score for each
search element and multiplies these scores together:
<PRODUCT>(computers, laptops)
The resulting score for each document is multiplied together.
Adds together the scores for documents matching a query, up to a
maximum value of 1:
<SUM>(computers, laptops)
The resulting scores are added together.
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.