ElasticGraph Query API: Equality Filtering
The most commonly used predicate supports equality filtering:
equalToAnyOf
- Matches records where the field value is equal to any of the provided values.
This works just like an
IN
operator in SQL.Will be ignored when
null
is passed. When an empty list is passed, will cause this part of the filter to match no documents. Whennull
is passed in the list, will match records where the field value isnull
.
Here’s a basic example:
Unlike the SQL IN
operator, you can find records with null
values if you put null
in the list: