In an explicit query, the Verity search engine literally interprets your search terms. The following are two ways to perform an explicit query:
type=explicit
in the cfsearch
tag.When you enclose the search term in double quotation marks, Verity does not use the STEM operator. For example, a search for "instructional"-enclosed in quotation marks-does not return files that contain instruct, instructs, instructions, and so on (unless the files also contain instructional). As the following figure shows, this search retrieves fewer files than a search without quotation marks:
Verity has many powerful operators and modifiers available for searching (for more information, see "Operators and modifiers"). However, users might only use the most basic operators-AND and OR, and the modifier NOT. The following are a few important points:
love "and" marriage.
Note: Although NOT is a modifier, you use it only with the AND and OR operators. Therefore, it is sometimes casually referred to as an operator.
The following table gives examples of searches and their results:
Part of the strength of the Verity search is its use of wildcards and special characters to refine searches. Wildcard searches are especially useful when you are unsure of the correct spelling of a term. Special characters help you search for tags in your code.
The following table shows the wildcard characters that you can use to search Verity collections:
To search for a wildcard character as a literal, place a backslash character before it; for example:
<cfsearch name = "quick_search" collection="bbb" type = "simple" criteria="'M\\*'">
Note: The last line is equivalent to criteria='"M\\*"'>
.
The search engine handles a number of characters in particular ways as the following table describes:
To search for special characters as literals, precede the following nonalphanumeric characters with a backslash character (\) in a search string:
In addition to the backslash character, you can use paired backquote characters (` `) to interpret special characters as literals. For example, to search for the wildcard string "a{b" you can surround the string with backquotes, as follows:
`a{b`
To search for a wildcard string that includes the literal backquote character (`) you must use two backquote characters together and surround the entire string in backquotes:
`*n``t`
You can use paired backquotes or backslashes to escape special characters. There is no functional difference between the two. For example, you can query for the term: <DDA> using \<DDA\>
or `<DDA>`
as your search term.