topK
vectors may be returned.
equals
operator filters keys whose values are equal to the given literal.
It is applicable to string, number, and boolean values.
not equals
operator filters keys whose values are not equal to the given literal.
It is applicable to string, number, and boolean values.
less than
operator filters keys whose values are less than the given literal.
It is applicable to number values.
less than or equals
operator filters keys whose values are less than or equal to the given literal.
It is applicable to number values.
greater than
operator filters keys whose values are greater than the given literal.
It is applicable to number values.
greater than or equals
operator filters keys whose values are greater than or equal to the given literal.
It is applicable to number values.
glob
operator filters keys whose values match with the given UNIX glob pattern.
It is applicable to string values.
It is a case sensitive operator.
The glob operator supports the following wildcards:
*
matches zero or more characters.?
matches exactly one character.[]
matches one character from the list
[abc]
matches either a
, b
, or c
.[a-z]
matches one of the range of characters from a
to z
.[^abc]
matches any one character other than a
, b
, or c
.[^a-z]
matches any one character other than a
to z
.s
or z
,
and ends with anything other than m
to z
.
not glob
operator filters keys whose values do not match with the given UNIX glob pattern.
It is applicable to string values.
It has the same properties with the glob operator.
For example, the filter below would only match with city names whose first character is anything other than A
.
in
operator filters keys whose values are equal to any of the given literals.
It is applicable to string, number, and boolean values.
OR
boolean operator in between:
not in
operator filters keys whose values are not equal to any of the given literals.
It is applicable to string, number, and boolean values.
AND
boolean operator in between:
contains
operator filters keys whose values contain the given literal.
It is applicable to array values.
not contains
operator filters keys whose values do not contain the given literal.
It is applicable to array values.
has field
operator filters keys which have the given JSON field.
has not field
operator filters keys which do not have the given JSON field.
AND
and OR
boolean operators to form
compound filters.
AND
will have higher
precedence than OR
. So, the filter
.
accessor.
Nested objects can be at arbitrary depths, so more than one .
accessor can be used
in the same identifier.
CONTAINS
and NOT CONTAINS
operators, individual array elements can also
be filtered by referencing them with the []
accessor by their indexes.
Indexing is zero based.
#
character with negative values.
#
can be thought as the number of elements in the array, so [#-1]
would reference the
last element.
[a-zA-Z_][a-zA-Z_0-9.[\]#-]*
. In simpler terms, they should
start with characters from the English alphabet or _
, and can continue with same characters plus numbers and other accessors
like .
, [0]
, or [#-1]
.1
or 0
.