Operators
This document describes the comparison operators that are used to create searches, and the boolean operators that are used to combine or act on searches.
Comparison operators
Comparison operators are used to built metadata key searches. Operators compare a metdata data key to a value.
| operator | description |
|---|---|
like |
Case-sensitive string comparison operator. The * and ? wildcard characters can be used in the value
as if shell globbing.
(See Searching For Partial
Matches for more information)
|
like[c] |
Equivalent to like operator, but performs a case-insensitive string comparion. |
= |
Generic equality comparison operator. Operates on all
types of values. For string values this operator is equivilent
to like[c] |
== |
Equivalent to the = operator |
!= |
Generic inequality operator. Operators on all types of values. For string values the inequality is based on a case-insensitive comparison. |
> |
Greater than operator. Operates on number and date values. |
< |
Less than operator. Operates on number and date values. |
>= |
Greater than or equal to operator. Operates on number and date values. |
<= |
Less than or equal to operator. Operates on number and date values. |
Boolean operators
Boolean operators are used to combine or act on searches in meaningful ways.
| operator | description |
|---|---|
and |
Performs a logical 'AND' operation on two searches. |
&& |
Equivalent to and |
or |
Performs a logical 'OR' operation on two searches. |
|| |
Equivalent to or |
not |
Performs a logical 'NOT' operation on a search. |
! |
Equivalent to not |