Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 524

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
The following table describes the evidence operators:
Operator
Description
STEM
Expands the search to include the word that you enter and its
variations. The STEM operator is automatically implied in any
simple query.
WILDCARD
Matches wildcard characters included in search strings. Certain
characters automatically indicate a wildcard specification, such as
apostrophe (*) and question mark(?).
WORD
Performs a basic word search, selecting documents that include
one or more instances of the specific word that you enter. The
WORD operator is automatically implied in any SIMPLE query.
THESAURUS
Expands the search to include the word that you enter and its
synonyms. Collections do not have a thesaurus by default; to use
this feature you must build one.
SOUNDEX
Expands the search to include the word that 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 that 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, the default error
distance is 2.
The following example uses an evidence operator:
<cfsearch name = "quick_search"
collection="bbb"
type = "explicit"
criteria="<WORD>film">
Proximity operators
Proximity operators specify the relative location of specific words in the document. To retrieve a document, the
specified words must be in the same phrase, paragraph, or sentence. 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.
The following table describes the proximity operators:
Last updated 1/20/2012
Example
<STEM>believe retrieves matches such as
"believe," "believing," and "believer".
spam* retrieves matches such as, spam, spammer,
and spamming.
<WORD> logic retrieves logic, but not variations
such as logical and logician.
<THESAURUS> altitude retrieves documents
containing synonyms of the word altitude, such as
height or elevation.
<SOUNDEX> sale retrieves words such as sale, sell,
seal, shell, soul, and scale.
<TYPO> swept retrieves kept.
519

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents