Payload field facets

Retrieves facets for the specified payload field.

Authentication

api-keystring
API Key authentication via header

Path parameters

collection_namestringRequired
Name of the collection to facet in

Query parameters

consistencyinteger or enumOptional
Define read consistency guarantees for the operation
timeoutintegerOptional>=1
If set, overrides global timeout for this request. Unit is seconds.

Request

Request counts of points for each unique value of a payload key
keystringRequired
Payload key to use for faceting.
shard_keystring or uint64 or list of strings or uint64s or object or anyOptional
limitinteger or nullOptional>=1
Max number of hits to return. Default is 10.
filterobject or anyOptional

Filter conditions - only consider points that satisfy these conditions.

exactboolean or nullOptional
Whether to do a more expensive exact count for each of the values in the facet. Default is false.

Response

successful operation
usageobject or any
timedouble
Time spent to process this request
statusstring
resultobject