| Back | Home |

This search facility is implemented via a Verity search engine which enables you to build very powerful search queries as well as use very simple word and phrase seaches.

This document increases in complexity and the first few paragraphs will be sufficient for most users.

Simple query expressions

Enter a word or a group of words to search for stories containing those words. A comma delimited list of words will be treated as a logical OR statement, for example 'results,scorecard' will be treated as 'results OR scorecard'. If you ommit the commas the words will be treated as a phrase, therefore you would search for 'results scorecard'. Case is ignored.

Use a wild card to broaden your search, for example 'all' will just find stories with the word 'all' in them whereas 'all*' will find 'allegorical', 'alliterate' etc. as well as 'all'.

Operators are normally surrounded by angle brackets < >. However, you can use the AND, OR, and NOT operators in a query without using angle brackets: 'software AND (Microsoft OR Oracle)'. To include an operator in a search, you surround it with double quotation marks: software "and" Microsoft. This expression searches for the phrase "software and Microsoft."

By default the query employs the STEM operator and the MANY modifier. STEM searches for words that derive from those entered in the query expression, so that entering "find" will return documents that contain "find," "finding," "finds," etc. The MANY modifier forces the documents returned in the search to be presented in a list based on a relevancy score (first column in the results table).

Operators

An operator represents logic to be applied to a search element. This logic defines the qualifications a document must meet to be retrieved. Operator types are as follows:

  • Wildcards
  • Evidence operators
  • Proximity operators
  • Relational operators
  • Concept operators
  • Score operators

Ordinarily, you use operators in explicit searches. They are used in the following manner:

"<operator>search_string"

Wildcards

The following wildcard characters are available for searching Verity collections:

Verity Wildcard Characters
Wildcard Description

?

Question. Specifies any single alphanumeric character.

*

Asterisk. Specifies zero or more alphanumeric characters. Avoid using the asterisk as the first character in a search string. Asterisk is ignored in a set, [ ] or an alternative pattern { }.

[ ]

Square brackets. Specifies one of any character in a set, as in "sl[iau]m" which locates "slim," "slam," and "slum." Square brackets indicate an implied OR.

{ }

Curly braces. Specifies one of each pattern separated by a comma, as in "hoist{s, ing, ed}" which locates "hoists," "hoisting," and "hoisted." Curly braces indicate an implied AND.

^

Caret. Specifies one of any character not in the set as in "sl[^ia]m" which locates "slum" but not "slim" or "slam."

-

Hyphen. Specifies a range of characters in a set as in "c[a-r]t" which locates every word beginning with "c," ending with "t," and containing any letter from "a" to "r."

Searching for wildcards as literals

To search for a wildcard character in your collection, you need to escape the character with a backslash (\). For example:

To match a literal asterisk, you precede the * with two backslashes: "a\\*"

To match a question mark or other wildcard character: "Checkers\?"

Searching for special characters as literals

The following non-alphanumeric characters must be preceded by a backslash character (\) in a search string:

  • comma (,)
  • left and right parentheses ( )
  • Double quotation mark (")
  • backslash (\)
  • at sign (@)
  • left curly brace ({)
  • left bracket ([)
  • less than sign (<)
  • backquote (`)

In addition to the backslash character, you can use paired backquotes (` `) 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 backquotes together and surround the whole string in backquotes:

`*n``t`

Note that you can use either paired backquotes or backslashes to escape special characters. There is no functional difference in the use of one or the other. For example, you can query for the term: <DDA> in the following ways:

\<DDA\> or `<DDA>`

Proximity operators

Proximity operators specify the relative location of specific words in the document. Specified words must be in the same phrase, paragraph, or sentence for a document to be retrieved. In the case of NEAR and NEAR/N operators, retrieved documents are ranked by relevance based on the proximity of the specified words. Proximity operators can be nested; phrases or words can appear within SENTENCE or PARAGRAPH operators, and SENTENCE operators can appear within PARAGRAPH operators.

The following table describes each operator:

Verity Proximity Operators
Operator Description

NEAR

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.

NEAR/N

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>

PARAGRAPH

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.

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)

SENTENCE

Selects documents that include all of the words you specify within the same sentence. Examples:

jazz <SENTENCE> musician
<SENTENCE> (jazz, musician)

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.

There are two types of relational operators to perform numeric and date comparisons. Text comparison operators match words and parts of words.

Numeric and date relational operators

The following operators are used for numeric and date comparisons.

Verity Numerical and Date Relational Operators
Operator Description

=

Equals

>

Greater than

>=

Greater than or equal to

<

Less than

<=

Less than or equal to

Text comparison operators

The following operators are used for text comparisons.

Verity Comparison Operators
Operator Description

CONTAINS

Selects documents by matching the word or phrase you specify with the values stored in a specific document field. Documents are selected only if the search elements specified appear in the same sequential and contiguous order in the field value. For example, specifying "god" will match "God in heaven," "a god among men," or "good god" but not "godliness," or "gods."

MATCHES

Selects documents by matching the query string with values stored in a specific document field. Documents are selected only if the search elements specified match the field value exactly. If a partial match is found, a document is not selected. For example, specifying "god" will match a document field containing only "god" and will not match "gods," "godliness," or "a god among men."

STARTS

Selects documents by matching the character string you specify with the starting characters of the values stored in a specific document field.

ENDS

Selects documents by matching the character string you specify with the ending characters of the values stored in a specific document field.

SUBSTRING

Selects documents by matching the query string you specify with any portion of the strings in a specific document field. For example, specifying "god" will match "godliness," "a god among men," "godforsaken," etc.


Send mail to the Webmaster in case of problems,
or if you have any suggestions for improving this service.

SessionId=4973115