
288
Chapter 15 Indexing and Searching Data
When you use prefix notation, the expression specifies precedence explicitly. The
following example means: Look for documents that contain b and c first, then
documents that contain a:
OR (a, AND (b,c))
When you use infix notation, precedence is implicit in the expression. For example,
the AND operator takes precedence over the OR operator.
Commas in expressions
If an expression includes two or more search terms within parentheses, a comma is
required as a separator between the elements. The following example means: Look
for documents that contain any combination of a and b together.
<OR> (a, b)
Note that in this example, angle brackets are used with the OR operator.
Delimiters in expressions
You use angle brackets (< >), double quotation marks ("), and backslashes (\) to
delimit various elements in a query expression, as described in the following table:
Searching with wildcards
The following table shows the wildcard characters that you can use to search Verity
collections:
Angle brackets
Left and right angle brackets are reserved for designating
operators and modifiers. They are optional for the AND, OR, and
NOT operators, but required for all other operators.
Double quotation
marks
You use double quotation marks in expressions to search for a
word that is otherwise reserved as an operator, such as AND, OR,
and NOT.
Backslashes
To include a backslash in a search expression, insert two
backslashes for each backslash character you want included in the
search; for example, C:\\CFUSION\\BIN.
Wildcard
Description
?
Question. Matches any single alphanumeric character.
*
Asterisk. Matches zero or more alphanumeric characters. Avoid using
the asterisk as the first character in a search string. Asterisk is ignored
in a set, ([]) or an alternative pattern ({}).
[ ]
Square brackets. Matches any one the characters in the brackets, as in
“sl[iau]m” which locates “slim,” “slam,” and “slum.” Square brackets
indicate an implied OR.
Содержание COLDFUSION 5-DEVELOPING
Страница 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Страница 58: ...38 Chapter 3 Querying a Database ...
Страница 134: ...114 Chapter 7 Updating Your Database ...
Страница 210: ...190 Chapter 10 Reusing Code ...
Страница 232: ...212 Chapter 11 Preventing and Handling Errors ...
Страница 238: ...218 Chapter 12 Using the Application Framework ...
Страница 262: ...242 Chapter 12 Using the Application Framework ...
Страница 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Страница 320: ...300 Chapter 15 Indexing and Searching Data ...
Страница 336: ...316 Chapter 16 Sending and Receiving E mail ...
Страница 374: ...354 Chapter 18 Interacting with Remote Servers ...