投影定义:获取属性的列表for every record (by default onlyidandversionare fetched, anything else must be requested explicitly)
filter
Filter
Filters to apply to results set (permissions and visibility filters are always applied whether requested or not, so that user sees only records she has access to)
sort
Array[Sort]
List of attributes to sort result set on; sorts are applied in order they are specified, meaning if records have the same value of some sort attribute, then the next sort attribute (if defined) is used to order records within that group
Filter
Attribute
Type
Description
and
Array[Filter]
ANDlogical operator for filters
or
Array[Filter]
ORlogical operator for filters
not
Filter
NOTlogical operator for filters
filter
FilterOperand
concrete filter specifying an attribute and condition it must meet for this filter to match
FilterOperand
Attribute
Type
Description
attribute
Attribute
attribute to filter records on
parameter
FilterOperator
concrete condition thatattributemust meet
FilterOperator
Attribute
Type
Description
any
Array[AnyType]
attribute must have one of specified values
all
Array[AnyType]
attribute must have all of specified values (applies to array attributes)
contains
String
attribute must contain specified phrase
starts_with
String
attribute must start with specified phrase (limited to 256 characters, longer input will be trimmed to that length)
All elements inanyorallmust be of the same type and that type must match filtered argument type
Exactly one ofFilterOperators attributes must be non-null
Filter type must be allowed by attribute type
Type
Allowed filters
Id
any eq range missing is_null
Version
any eq range graph_expression
PermissionsOwner PermissionsTeam PermissionsGroup
any eq
short byte integer long double
any eq range missing is_null
string
starts_with any eq contains missing is_null
boolean
any eq missing is_null
date date-time
any eq range missing is_null
array
Filters allowed by type of stored elements, plus additional filter: all
object
Filtering cannot be done explicitly on an object, but it can be done on it's attributes. If object hasfilter_fieldset in mapping, then any filter specified directly on this object will be resolved against that attribute (including type validation).
CustomField
Every CustomField has some underlying data type. All of them are described above, and undergo the same rules.
GeoPoint
geo_distance
Range
Attribute
Type
Description
gte
AnyType
lower range bound (inclusive)
gt
AnyType
lower range bound (exclusive)
lte
AnyType
upper range bound (inclusive)
lt
AnyType
upper range bound (exclusive)
Validation rules
At most one of lower bounds [gte,gt] may be specified
At most one of upper bound [lte,lt] may be specified
GeoDistance
Attribute
Type
Description
distance_meters
Decimal
radius of circle centred in thefromlocation (in meters)
value to use (in filtering, sorts and aggregations) if attribute is missing in record
Validation rules
namemust be defined in mapping for given index (either directly, e.g.display_namefor contacts or as field of an object with dot notation, e.g.address.streetin contacts)