Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 511

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Query type
Content
Simple
One or more words Uses STEM operator and MANY
Explicit
Words, operators,
modifiers
Natural
One or more words Uses STEM operator and MANY
Internet
Words, operators,
modifiers
The query type determines whether the search words that you enter are stemmed, and whether the retrieved words
contribute to relevance-ranked scoring. Both of these conditions occur by default in simple queries. For more
information on the STEM operator and MANY modifier, see
Note: Operators and modifiers are formatted as uppercase letters here solely to enhance legibility. They might be all
lowercase or uppercase.
Using simple queries
The simple query is the default query type and is appropriate for the vast majority of searches. When entering text on
a search form, you perform a simple query by entering a word or comma-delimited strings, with optional wildcard
characters. Verity treats each comma as a logical OR. If you omit the commas, Verity treats the expression as a phrase.
Important: Many web search engines assume a logical AND for multiple word searches, and search for a phrase only if
you use quotation marks. Because Verity treats multiple word searches differently, it helps your users if you provide
examples on your search page or a brief explanation of how to search.
The following table shows examples of simple searches:
Example
low,brass,instrument
low brass instrument
film
filming AND fun
filming OR fun
filming NOT fun
Use of operators and modifiers
modifier, by default
Must be specified
modifier, by default
Search result
low or brass or instrument
the phrase, low brass instrument
film, films, filming, or filmed
film, films, filming, or filmed, and fun
film, films, filming, or filmed, or fun
film, films, filming, or filmed, but not fun
Last updated 1/20/2012
CFML example
<cfsearch name = "band_search"
collection="bbb"
type = "simple"
criteria="film">
<cfsearch name = "my_search"
collection="bbb"
type = "explicit"
criteria="<WILDCARD>'sl[iau]m'">
<cfsearch name = "my_search"
collection="bbb"
type = "natural"
criteria="Boston subway maps">
<cfsearch name = "my_search"
collection="bbb"
type = "Internet"
criteria="Boston subway maps">
"Stemming in simple
queries" on page 507.
506

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents