Entity Queries

The root of an entity query targets an entity index. Therefore, any properties you may want to query should be indexed. Use case-insensitive indexing to yield greater search results.

Entity Patterns

An entity query follows one of these patterns:

  • EntityType Property value
  • EntityType Property Operator value
  • EntityType Property value condition Property value
  • EntityType Property Operator value condition Property Operator value
  • EntityType value
  • Property value
  • Property Operator value
  • EntityType
  • value

Query Operators

The following operators are valid for entity queries. Additionally, you can use wildcard characters with the Is Like operator. An asterisk (*) represents any character sequence, and a question mark (?) represents any single character.

Operator Property Type
< Numeric or temporal
<= Numeric or temporal
> Numeric or temporal
>= Numeric or temporal
Is Not String, Numeric or temporal
Is Similar To String
Is Like String
Contains String
Does Not Contain String
Starts With String
Does Not Start With String
Ends With String
Does Not Start With String
Matches regular expression String

Conditions

Condition operators act on expressions that evaluate to True or False and on Boolean properties in entity queries.

Operator Condition
&& And
|| Or
Is Not Not