Using Query Expressions
291
The following tale describes the evidence operators:
Proximity operators
Proximity operators specify the relative location of specific words in the document.
Specified words must be in the same phrase, paragraph, or sentence for a document
to be retrieved. In the case of NEAR and NEAR/N operators, retrieved documents are
ranked by relevance based on the proximity of the specified words. Proximity
operators can be nested; phrases or words can appear within SENTENCE or
PARAGRAPH operators, and SENTENCE operators can appear within PARAGRAPH
operators.
Operator
Description
STEM
Expands the search to include the word you enter and its variations.
The STEM operator is automatically implied in any simple query. For
example, the explicit query expression:
<STEM>believe
yields matches such as “believe,” “believing,” and “believer”.
WILDCARD
Matches wildcard characters included in search strings. Certain
characters automatically indicate a wildcard specification, such as
apostrophe (*) and question mark(?). For example, the query
expression:
spam*
yields matches such as, “spam,” “spammer”, and “spamming”.
WORD
Performs a basic word search, selecting documents that include one
or more instances of the specific word you enter. The WORD
operator is automatically implied in any SIMPLE query.
THESAURUS
Expands the search to include the word you enter and its synonyms.
SOUNDEX
Expands the search to include the word you enter and one or more
words that “sound like,” or whose letter pattern is similar to, the word
specified. Collections do not have sound-alike indexes by default; to
use this feature you must build sound-alike indexes.
TYPO/N
Expands the search to include the word you enter plus words that
are similar to the query term. This operator performs “approximate
pattern matching” to identify similar words. The optional N variable in
the operator name expresses the maximum number of errors
between the query term and a matched term, a value called the error
distance. If N is not specified, an error distance of 2 is used.
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...