View comments | RSS feed
Contents > Developing ColdFusion MX Applications > Using Verity Search Expressions > Using simple queries PreviousNext

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.

Caution: 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 might help 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

Search result

low,brass,instrument

low or brass or instrument

low brass instrument

the phrase, low brass instrument

film

film, films, filming, or filmed

filming AND fun

film, films, filming, or filmed, and fun

filming OR fun

film, films, filming, or filmed, or fun

filming NOT fun

film, films, filming, or filmed, but not fun

The operators AND and OR, and the modifier NOT, do not require angle brackets (<>). Operators typically require angle brackets and are used in explicit queries. For more information about operators and modifiers, see Operators and modifiers.


Contents > Developing ColdFusion MX Applications > Using Verity Search Expressions > Using simple queries PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

Comments


brocxk said on Aug 16, 2003 at 10:03 AM :
It would be great to provide an example of how to make verity act like other search engines and treat a space as an "and" without treating " and " as "and and"
rfung said on Oct 14, 2004 at 2:38 PM :
To asnwer the comment about making it behave like other search engines, this can be accomplished by processing the keywords before sending them to verity.
Maneesh Tikkiwal said on Oct 20, 2004 at 5:52 AM :
Can any body give any example here? Also, I need to create an Index which start from the www_root directory, but I need to exclude some 15 odd directories out of the total 200 directories. My understanding till now is that I need to create 185 different indexes to exclude 15 directories, Can we not do the same using on Index? Can we specify directories (sub directories) which should be excluded from the Index?

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/indexsa3.htm