Product DocsMenu

Coveo Platform 7.0 >
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 because of the stemming expansion (see About Stemming), also documents containing words with the same root (such as developed, developing, or developer) and words with accented characters (such as the French word développement), if present in indexed documents. 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 casing or accented character variants.

Note: Characters with diacritics such as accents are taken into account only for French and English documents, not for documents identified to be in other languages.

Example: A number of Portuguese documents contain the term doação. They are all returned when searching for doação, while none are returned when searching for doacao.

Single term exact match

Example:

+development

Returns only documents containing development, 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 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 terms with common words

Example:

What is the learning curve of the development process

Returns documents containing all the queried words (including the short common words such as what, is, the, and of) or, because stemming expansion of queries is applied by default, words with the same roots.

Documents containing original forms of the words, and documents in which the searched terms are nearby are ranked higher.

Phrase, sentence, or term sequence match

Example:

"Learning the development process"

Returns only documents containing a contiguous same order sequence of the original terms within the double quotation marks.

The double quotation marks disable the query expansion by the stemming algorithm. A phrase search is sensitive to accented characters but not case-sensitive and punctuation marks within a sentence are ignored.

Multiple terms with Boolean operators and parentheses

Example:

development AND (performance OR process) NOT sales

Returns documents containing development and either performance or process but excludes documents containing sales (see Boolean Operators and Miscellaneous Operators).

Because of the stemming expansion of queried terms, 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:

micro*

Returns documents containing words starting with micro completed by any number of any characters at the place of the * character such as Microsoft or microprocessor (see Wildcard Operators).

Field query

Example:

@sysauthor="John"

Returns documents whose sysauthor field 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 page (see Using the Advanced Search Page in .NET Search Interfaces).

People who viewed this topic also viewed