Product DocsMenu

Coveo Platform 6.5 >
User Help > Basic Search > Search Query Examples

Search Query Examples

The following list presents examples of queries using simple and more sophisticated syntax, and describes the corresponding search results that are returned.

Single term
Example:

development

Returns documents containing development but by default also documents containing:

  • words with the same root (such as developed, developing, or developer) because stemming is enabled by default (see What Is Stemming?).
  • keywords with various casing (ex.: Develop) because indexing casing is disabled by default.
  • words with accented characters (ex.: the French word développement) because indexing of accented characters is disabled by default.

This default behavior helps to broaden search results and is generally very useful.

Documents containing the exact searched term are however ranked higher than those containing words with the same root, or those containing different casing or accentuation.

Single term exact match
Example:

+development

Returns documents containing development but NOT documents containing words with the same root.

The + prefix forces an exact match of the keyword it precedes. This prefix is useful in cases where stemming is not desirable (see Search Prefixes and Operators).

Multiple terms
Example:

development process

Returns documents containing both development and process as well as documents containing words with the same root from both keywords.

In the documents, the keywords can be contiguous or not, in the same order or not, but documents containing contiguous keywords in the same order are ranked higher.

Multiple term with common words
Example:

What is the learning curve of the development process

Returns documents containing the keywords learning, curve, development, and process and words with the same roots, but ignores the stop words what, is , the, and of.

Stop words that are short common words (such as:  an, are, as, at, be, by, for, in, is, it, of, on, or, that, the, this, to, was, what, when, where, who, and why) are not indexed by default.

Note: Your Coveo administrator can customize the list of stop words (see Customizing the List of Common Ignored Terms).

Phrase, sentence, or term sequence match
Example:

"Learning the development process"

Returns only documents containing a contiguous same order sequence of terms within the double quotation marks. However, because stop words (such as the in the example) are not indexed, any term can be returned at the position of stop words in searched phrase.

With stemming that is enabled by default, for each non stop word terms, words with the same root are searched.

Consequently, documents that would contain phrase variants such as the following can also be returned.:

"Learning of development processes"
"Learn the developed process"
"Learning in development processing"

Multiple terms with Boolean operators and parentheses
Example:

development AND (performance OR process) NOT sales

Returns documents containing development and either performanceor process but excludes documents containing sales (see Boolean Operators and Miscellaneous Operators). With stemming enabled by default, documents containing words with the same root as keywords are also returned.

In the documents, the keywords can be contiguous or not, in the same order or not, but documents containing contiguous keywords in the same order are ranked higher.

Term with wildcard character
Example:

develop*

Returns documents containing words starting with develop completed by any number of any characters at the place of the * character (see Wildcard Operators).

Field query
Example:

@sysauthor="John"

Returns documents whose author name contains John. Fields are metadata extracted from documents when they are added to the Coveo unified index.

Note: In the default web search hub, you can also click the Advanced Search link to build complex field queries using the Advanced Search user interface (see Using the Advanced Search Page).