Using Explicit Queries; Using And, Or, And Not - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Using explicit queries

In an explicit query, the Verity search engine literally interprets your search terms. The following
are two ways to perform an explicit query:
On a search form, use quotation marks around your search term(s).
In CFML, use
When you put a search term in quotation marks Verity does not use the STEM operator. For
example, a search for "instructional"—enclosed in quotation marks, as shown in
stemming"—does not return files that contain instruct, instructs, instructions, and so on (unless
the files also contain instructional).
When you specify
Language expression. As a result, an individual search term must be in explicit quotation marks.
The following table shows valid and invalid criteria.
Attribute
criteria="government"
criteria="'government'" or
criteria='"government"'
criteria="<WORD>government"
criteria="<STEM>government"
criteria="<MANY><STEM>government"
criteria="<WILDCARD>governmen*"

Using AND, OR, and NOT

Verity has many powerful operators and modifiers available for searching (for more information,
see
"Operators and modifiers" on page
operators—AND and OR, and the modifier NOT. The following are a few important points:
You can type operators in uppercase or lowercase letters.
Verity reads operators from left to right. The AND operator takes precedence over the OR
operator.
Use parentheses to clarify the search. Terms enclosed in parentheses are evaluated first;
innermost parentheses are evaluated first when there are nested parentheses.
To search for a literal AND, OR, or NOT, enclose the literal term in double quotation marks;
for example:
love "and" marriage.
Note: Although NOT is a modifier, you use it only with the AND and OR operators. Therefore, it is
sometimes casually referred to as an operator.
" in the
type="explicit
" the search expression must be a valid Verity Query
type="explicit
Effect
Generates an error
Finds only government
Finds only government
Finds government, governments, and governmenta
Finds government, governments, and governmental ranked
by relevance
Finds government, governments, and governmental
543). However, users might only use the most basic
tag.
cfsearch
"Preventing

Using explicit queries

539

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents