MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual page 199

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 11: Indexing and Searching Data
The following table describes each operator.
Verity Proximity Operators
Operator
NEAR
NEAR/N
PARAGRAPH
PHRASE
SENTENCE
Relational operators
Relational operators search document fields that have been defined in the collection.
Documents containing specified field values are returned. Documents retrieved using
relational operators are not ranked by relevance, and you cannot use the MANY
modifier with relational operators.
Description
Selects documents containing specified search terms. The closer
the search terms are to one another within a document, the higher
the document's score. The document with the smallest possible
region containing all search terms always receives the highest score.
Documents whose search terms are not within 1000 words of each
other are not selected.
Selects documents containing two or more search terms within N
number of words of each other, where N is an integer between 1
and 1024 where NEAR/1 searches for two words that are next to
each other. The closer the search terms are within a document, the
higher the document's score.
You can specify multiple search terms using multiple instances of
NEAR/N as long as the value of N is the same:
commute <NEAR/10> bicycle <NEAR/10>
train <NEAR/10>
Selects documents that include all of the words you specify within
the same paragraph. To search for three or more words or phrases,
you must use the PARAGRAPH operator between each word or
phrase.
Selects documents that include a phrase you specify. A phrase is a
grouping of two or more words that occur in a specific order.
Examples of phrases:
mission oak
"mission oak"
mission <PHRASE> oak
<PARAGRAPH> (mission, oak)
Selects documents that include all of the words you specify within
the same sentence. Examples:
jazz <SENTENCE> musician
<SENTENCE> (jazz, musician)
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents