except

Purpose

The except() function is used to specify that any arguments except specified ones can occur on the specified position in the sequence.

Syntax

except([expression,…​])

Arguments

Accepts multiple arguments instead of a single argument.

except() cannot be used within functions which do not support nested arguments (e.g. term(), regex(), dictword(), knownword(), unknownword(), number(), etc.). In such cases operator "/" can be used instead.

Returned Value

Documents matching the query.

Examples

case(title, except(company)) matches all words, starting from a capital letter, except "Company".

lemma(adjective, except(fast)) matches all adjectives, except "fast".