Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 521

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
STARTS
ENDS
SUBSTRING
Concept operators
Concept operators combine the meaning of search elements to identify a concept in a document. Documents retrieved
using concept operators are ranked by relevance. The following table describes each concept operator:
Operator
Description
AND
Selects documents that contain all the search elements that you specify.
OR
Selects documents that show evidence of at least one of the search elements that you specify.
ACCRUE
Selects documents that include at least one of the search elements that you specify. Documents are ranked based
on the number of search elements found.
ALL
Selects documents that contain all of the search elements that you specify. A score of 1.00 is assigned to each
retrieved document. ALL and AND retrieve the same results, but queries using ALL are always assigned a score of
1.00.
ANY
Selects documents that contain at least one of the search elements that you specify. A score of 1.00 is assigned to
each retrieved document. ANY and OR retrieve the same results, but queries using ANY are always assigned a score
of 1.00.
Relational operators
Relational operators search document fields (such as AUTHOR) that you defined in the collection. Documents that
contain 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.
You use the following operators for numeric and date comparisons:
Operator
Description
=
Equal
!=
Not equal
>
Greater than
>=
Greater than or equal to
<
Less than
<=
Less than or equal to
For example, to search for documents that contain values for 1999 through 2002, you perform either of the following
searches:
• A simple search for 1999,2000,2001,2002
• An explicit search using the = operator: >=1999,<=2002
If a document field named PAGES is defined, you can search for documents that are five pages or fewer by entering
PAGES < 5 in your search. Similarly, if a document field named DATE is defined, you can search for documents dated
before and including December 31, 1999 by entering DATE <= 12-31-99 in your search.
The following relational operators compare text and match words and parts of words:
Last updated 1/20/2012
516

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents