Word forms (morphology) and search context

The morphology-based search considers the following:

  • The form of the specified word (case, gender, number, inflection, and so on).;
  • The part of speech (noun, adjective, verb, and so on).

By default, Yandex searches for all forms of the search terms.

The exception is cases when the following operators are used: ! and ".

You can also refine your search query using operators that specify whether the requested words are in the document.

Operator

Description

Syntax

Example of a query

!

Search for a word in the specified form.

You can use multiple ! operators in a single query.

!word

[!Curiouser !and !curiouser]

Documents with the words “!Curiouser !and !curiouser” in the specified form will be found.

+

Search for documents that definitely contain the marked word.

You can use multiple + operators in one query.

word1 +word2

[croquet +flamingo]

Search results will include documents that definitely contain the word “flamingo” and may contain the word “croquet”.

"

Search by quote.

Search for documents that contain the exact search terms in the specified order and form.

"word1 word2 ... wordN"

["drink me"]

Results will show documents containing this quote.

*

Search by quote with a missing word or words.

One * operator matches a single missing word.

Attention. Used only inside the" operator.
"word1 * word2 ... wordN"

The operator is separated by spaces.

["this watch is exactly * days slow"]

Results will show documents containing this quote, including the missing word.

|

Search for documents that contain any word from the query.

You can use multiple + operators in one query.

word1 | word2 | ... | wordN

The operator is separated by spaces.

[Cheshire cat | hatter | march hare]

The search will return documents containing at least one of the query words: “Cheshire cat”, “hatter”, or “march hare”.

-

Search for documents that do not contain the specified word.

Only the word preceded by the operator is excluded. The excluded word should be placed at the end of the search query.

You can use multiple - operators in one query.

word1 word2 ... -wordN -wordN+1

[Twinkle twinkle little -star]

Results will show documents that contain the words “Twinkle twinkle little”, but do not contain the word “star”.